dovecot-2.2: replicator: Previous "last successful sync" timesta...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jan 30 23:12:20 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/ad04a5e6a766
changeset: 18210:ad04a5e6a766
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jan 31 01:10:56 2015 +0200
description:
replicator: Previous "last successful sync" timestamp change wrote data wrong to replicator.db
Patch by Matthew Via / Rackspace

diffstat:

 src/replication/replicator/replicator-queue.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r 6e3b90370ad4 -r ad04a5e6a766 src/replication/replicator/replicator-queue.c
--- a/src/replication/replicator/replicator-queue.c	Fri Jan 30 12:29:25 2015 +0200
+++ b/src/replication/replicator/replicator-queue.c	Sat Jan 31 01:10:56 2015 +0200
@@ -392,15 +392,14 @@
 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)


More information about the dovecot-cvs mailing list