dovecot-2.0: mdbox: If purge deleted a whole file, it didn't exp...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Feb 9 18:12:55 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/912ef25c2dcf
changeset: 10681:912ef25c2dcf
user: Timo Sirainen <tss at iki.fi>
date: Tue Feb 09 18:12:50 2010 +0200
description:
mdbox: If purge deleted a whole file, it didn't expunge map records immediately.
diffstat:
1 file changed, 4 deletions(-)
src/lib-storage/index/dbox-multi/mdbox-file-purge.c | 4 ----
diffs (14 lines):
diff -r c7e827ab156e -r 912ef25c2dcf src/lib-storage/index/dbox-multi/mdbox-file-purge.c
--- a/src/lib-storage/index/dbox-multi/mdbox-file-purge.c Tue Feb 09 18:08:13 2010 +0200
+++ b/src/lib-storage/index/dbox-multi/mdbox-file-purge.c Tue Feb 09 18:12:50 2010 +0200
@@ -210,10 +210,6 @@ int mdbox_file_purge(struct dbox_file *f
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,
More information about the dovecot-cvs
mailing list