dovecot-2.0: maildir: Don't assert-crash when saving a message w...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Oct 5 04:20:37 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/e2f9baa436f2
changeset: 12242:e2f9baa436f2
user: Timo Sirainen <tss at iki.fi>
date: Tue Oct 05 02:20:31 2010 +0100
description:
maildir: Don't assert-crash when saving a message without locking uidlist.
diffstat:
src/lib-storage/index/maildir/maildir-save.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 4db5123f91e4 -r e2f9baa436f2 src/lib-storage/index/maildir/maildir-save.c
--- a/src/lib-storage/index/maildir/maildir-save.c Mon Oct 04 17:16:38 2010 +0100
+++ b/src/lib-storage/index/maildir/maildir-save.c Tue Oct 05 02:20:31 2010 +0100
@@ -854,7 +854,11 @@
prev_mf = mf;
}
- maildir_sync_set_new_msgs_count(ctx->sync_ctx, array_count(&files));
+ if (ctx->locked) {
+ i_assert(ctx->sync_ctx != NULL);
+ maildir_sync_set_new_msgs_count(ctx->sync_ctx,
+ array_count(&files));
+ }
return maildir_transaction_fsync_dirs(ctx, new_changed, cur_changed);
}
More information about the dovecot-cvs
mailing list