[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-storage.c,
1.16, 1.17
tss-movial at dovecot.org
tss-movial at dovecot.org
Wed May 31 16:17:52 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv11766/dbox
Modified Files:
dbox-storage.c
Log Message:
Close index files before trying to unlink the index directory
Index: dbox-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-storage.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- dbox-storage.c 30 May 2006 08:24:44 -0000 1.16
+++ dbox-storage.c 31 May 2006 13:17:49 -0000 1.17
@@ -488,6 +488,10 @@
return -1;
}
+ /* make sure the indexes are closed before trying to delete the
+ directory that contains them */
+ index_storage_destroy_unrefed();
+
if (unlink_directory(mail_path, TRUE) < 0) {
if (!dbox_handle_errors(istorage)) {
mail_storage_set_critical(_storage,
More information about the dovecot-cvs
mailing list