From: Timo Sirainen Date: Fri, 30 Jan 2015 23:10:56 +0000 (+0200) Subject: replicator: Previous "last successful sync" timestamp change wrote data wrong to... X-Git-Tag: 2.2.16.rc1~96 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b70a713f05ee8b3522cf190ea7fc4a1281dae38;p=thirdparty%2Fdovecot%2Fcore.git replicator: Previous "last successful sync" timestamp change wrote data wrong to replicator.db Patch by Matthew Via / Rackspace --- diff --git a/src/replication/replicator/replicator-queue.c b/src/replication/replicator/replicator-queue.c index 3e07f671d1..5838f660df 100644 --- a/src/replication/replicator/replicator-queue.c +++ b/src/replication/replicator/replicator-queue.c @@ -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)