dovecot-2.0: dsync: Added extra sanity check.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Mar 23 20:14:59 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/f6c2c0866aff
changeset: 10976:f6c2c0866aff
user: Timo Sirainen <tss at iki.fi>
date: Tue Mar 23 20:14:56 2010 +0200
description:
dsync: Added extra sanity check.
diffstat:
src/dsync/dsync-brain.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diffs (20 lines):
diff -r 52d9b2d8c1e8 -r f6c2c0866aff src/dsync/dsync-brain.c
--- a/src/dsync/dsync-brain.c Tue Mar 23 20:11:07 2010 +0200
+++ b/src/dsync/dsync-brain.c Tue Mar 23 20:14:56 2010 +0200
@@ -572,6 +572,16 @@
{
struct dsync_brain *brain = context;
+ switch (brain->state) {
+ case DSYNC_STATE_SYNC_MSGS_FLUSH:
+ case DSYNC_STATE_SYNC_MSGS_FLUSH2:
+ case DSYNC_STATE_SYNC_FLUSH:
+ case DSYNC_STATE_SYNC_FLUSH2:
+ break;
+ default:
+ i_panic("dsync brain state=%d", brain->state);
+ }
+
if (!success)
dsync_brain_fail(brain);
More information about the dovecot-cvs
mailing list