dovecot-2.0: mdbox: If purging found corrupted files, it didn't ...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Apr 10 06:54:08 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/8f67eaebfc17
changeset: 11122:8f67eaebfc17
user: Timo Sirainen <tss at iki.fi>
date: Sat Apr 10 06:54:05 2010 +0300
description:
mdbox: If purging found corrupted files, it didn't auto-rebuild storage.
diffstat:
src/lib-storage/index/dbox-multi/mdbox-sync.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r f15e96e46715 -r 8f67eaebfc17 src/lib-storage/index/dbox-multi/mdbox-sync.c
--- a/src/lib-storage/index/dbox-multi/mdbox-sync.c Fri Apr 09 21:07:08 2010 +0300
+++ b/src/lib-storage/index/dbox-multi/mdbox-sync.c Sat Apr 10 06:54:05 2010 +0300
@@ -431,5 +431,11 @@
dbox_file_unref(&file);
} T_END;
array_free(&ref0_file_ids);
+
+ if (storage->storage.files_corrupted) {
+ /* purging found corrupted files */
+ (void)mdbox_storage_rebuild(storage);
+ ret = -1;
+ }
return ret;
}
More information about the dovecot-cvs
mailing list