]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
replicator: Previous "last successful sync" timestamp change wrote data wrong to...
authorTimo Sirainen <tss@iki.fi>
Fri, 30 Jan 2015 23:10:56 +0000 (01:10 +0200)
committerTimo Sirainen <tss@iki.fi>
Fri, 30 Jan 2015 23:10:56 +0000 (01:10 +0200)
Patch by Matthew Via / Rackspace

src/replication/replicator/replicator-queue.c

index 3e07f671d1ad1b1e022d37ad0ba688b07e777a11..5838f660dfd476f115b49ba4c6c70b56382099a8 100644 (file)
@@ -392,15 +392,14 @@ static void
 replicator_queue_export_user(struct replicator_user *user, string_t *str)
 {
        str_append_tabescaped(str, user->username);
-       str_printfa(str, "\t%d\t%lld\t%lld\t%lld\t%d\t%lld\t", (int)user->priority,
+       str_printfa(str, "\t%d\t%lld\t%lld\t%lld\t%d\t", (int)user->priority,
                    (long long)user->last_update,
                    (long long)user->last_fast_sync,
                    (long long)user->last_full_sync,
-                   user->last_sync_failed,
-                   (long long)user->last_successful_sync);
+                   user->last_sync_failed);
        if (user->state != NULL)
                str_append_tabescaped(str, user->state);
-       str_append_c(str, '\n');
+       str_printfa(str, "\t%lld\n", (long long)user->last_successful_sync);
 }
 
 int replicator_queue_export(struct replicator_queue *queue, const char *path)