dovecot-2.0: dbox: mailbox_create/update() might not have update...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jan 24 00:31:25 EET 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/42ca32299617
changeset: 12575:42ca32299617
user: Timo Sirainen <tss at iki.fi>
date: Mon Jan 24 00:31:05 2011 +0200
description:
dbox: mailbox_create/update() might not have updated index header correctly.
diffstat:
src/lib-storage/index/dbox-common/dbox-storage.c | 2 +-
src/lib-storage/index/dbox-multi/mdbox-storage.c | 2 +-
src/lib-storage/index/dbox-single/sdbox-storage.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 4741f1b4f9b3 -r 42ca32299617 src/lib-storage/index/dbox-common/dbox-storage.c
--- a/src/lib-storage/index/dbox-common/dbox-storage.c Fri Jan 21 21:46:24 2011 +0200
+++ b/src/lib-storage/index/dbox-common/dbox-storage.c Mon Jan 24 00:31:05 2011 +0200
@@ -176,7 +176,7 @@
(box->list->props & MAILBOX_LIST_PROP_NO_NOSELECT) == 0)
return 0;
- if (index_storage_mailbox_open(box, FALSE) < 0)
+ if (mailbox_open(box) < 0)
return -1;
/* if alt path already exists and contains files, rebuild storage so
diff -r 4741f1b4f9b3 -r 42ca32299617 src/lib-storage/index/dbox-multi/mdbox-storage.c
--- a/src/lib-storage/index/dbox-multi/mdbox-storage.c Fri Jan 21 21:46:24 2011 +0200
+++ b/src/lib-storage/index/dbox-multi/mdbox-storage.c Mon Jan 24 00:31:05 2011 +0200
@@ -316,7 +316,7 @@
mdbox_mailbox_update(struct mailbox *box, const struct mailbox_update *update)
{
if (!box->opened) {
- if (index_storage_mailbox_open(box, FALSE) < 0)
+ if (mailbox_open(box) < 0)
return -1;
}
if (update->cache_fields != NULL)
diff -r 4741f1b4f9b3 -r 42ca32299617 src/lib-storage/index/dbox-single/sdbox-storage.c
--- a/src/lib-storage/index/dbox-single/sdbox-storage.c Fri Jan 21 21:46:24 2011 +0200
+++ b/src/lib-storage/index/dbox-single/sdbox-storage.c Mon Jan 24 00:31:05 2011 +0200
@@ -319,7 +319,7 @@
dbox_mailbox_update(struct mailbox *box, const struct mailbox_update *update)
{
if (!box->opened) {
- if (index_storage_mailbox_open(box, FALSE) < 0)
+ if (mailbox_open(box) < 0)
return -1;
}
if (update->cache_fields != NULL)
More information about the dovecot-cvs
mailing list