Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3453:f140acbe46b4 HEAD
Assert/cleanup
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 02 Jul 2005 13:54:33 +0300 |
parents | 09a585f5ad4b |
children | 8a175fd7e6e0 |
files | src/lib-storage/index/maildir/maildir-sync.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-sync.c Fri Jul 01 00:36:01 2005 +0300 +++ b/src/lib-storage/index/maildir/maildir-sync.c Sat Jul 02 13:54:33 2005 +0300 @@ -837,6 +837,8 @@ uint32_t uid_validity, next_uid; int ret = 0, full_rescan = FALSE; + i_assert(maildir_uidlist_is_locked(sync_ctx->mbox->uidlist)); + trans = mail_index_transaction_begin(view, FALSE, TRUE); sync_ctx->trans = trans; @@ -1099,6 +1101,7 @@ ret = -1; } maildir_keywords_sync_deinit(sync_ctx->keywords_sync_ctx); + sync_ctx->keywords_sync_ctx = NULL; if (ret == 0) { mbox->ibox.commit_log_file_seq = 0;