dovecot-2.1: director: Director ring needs to be set unsynced im...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Apr 20 19:13:13 EEST 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/a5b7dda1db6d
changeset: 14455:a5b7dda1db6d
user: Timo Sirainen <tss at iki.fi>
date: Fri Apr 20 19:03:26 2012 +0300
description:
director: Director ring needs to be set unsynced immediately even when sycning is frozen.
diffstat:
src/director/director.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (25 lines):
diff -r 8d0b71fb3e49 -r a5b7dda1db6d src/director/director.c
--- a/src/director/director.c Fri Apr 20 15:26:43 2012 +0300
+++ b/src/director/director.c Fri Apr 20 19:03:26 2012 +0300
@@ -323,6 +323,10 @@
static void director_sync(struct director *dir)
{
+ /* we're synced again when we receive this SYNC back */
+ dir->sync_seq++;
+ director_set_ring_unsynced(dir);
+
if (dir->sync_frozen) {
dir->sync_pending = TRUE;
return;
@@ -333,10 +337,6 @@
return;
}
- /* we're synced again when we receive this SYNC back */
- dir->sync_seq++;
- director_set_ring_unsynced(dir);
-
if (dir->debug) {
i_debug("Ring is desynced (seq=%u, sending SYNC to %s)",
dir->sync_seq, dir->right == NULL ? "(nowhere)" :
More information about the dovecot-cvs
mailing list