From: Timo Sirainen Date: Tue, 9 Feb 2010 16:12:50 +0000 (+0200) Subject: mdbox: If purge deleted a whole file, it didn't expunge map records immediately. X-Git-Tag: 2.0.beta3~117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57702f595477670273d98e6ad4e56e3a50231cc7;p=thirdparty%2Fdovecot%2Fcore.git mdbox: If purge deleted a whole file, it didn't expunge map records immediately. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/dbox-multi/mdbox-file-purge.c b/src/lib-storage/index/dbox-multi/mdbox-file-purge.c index 08426fb981..c849e4653f 100644 --- a/src/lib-storage/index/dbox-multi/mdbox-file-purge.c +++ b/src/lib-storage/index/dbox-multi/mdbox-file-purge.c @@ -210,10 +210,6 @@ int mdbox_file_purge(struct dbox_file *file) dbox_map_append_free(&append_ctx); dbox_file_unlock(file); ret = -1; - } else if (array_count(&copied_map_uids) == 0) { - /* everything expunged in this file, unlink it */ - ret = dbox_file_unlink(file); - dbox_map_append_free(&append_ctx); } else { /* assign new file_id + offset to moved messages */ if (dbox_map_append_move(append_ctx, &copied_map_uids,