Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7139:7424de4bac23 HEAD
Don't try to recreate dovecot-uidlist if we're not locked.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 10 Jan 2008 04:30:10 +0200 |
parents | 876c7bca351c |
children | 979294cabcab |
files | src/lib-storage/index/maildir/maildir-uidlist.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-uidlist.c Thu Jan 10 04:23:23 2008 +0200 +++ b/src/lib-storage/index/maildir/maildir-uidlist.c Thu Jan 10 04:30:10 2008 +0200 @@ -1405,7 +1405,10 @@ if (ctx->partial) maildir_uidlist_mark_all(ctx->uidlist, FALSE); - if ((ctx->changed || ctx->uidlist->recreate) && !ctx->failed) { + i_assert(ctx->locked || !ctx->changed); + if ((ctx->changed || ctx->uidlist->recreate) && + !ctx->failed && ctx->locked) { + i_assert(ctx->locked); T_FRAME( ret = maildir_uidlist_sync_update(ctx); );