Mercurial > dovecot > core-2.2
changeset 12710:42ca32299617
dbox: mailbox_create/update() might not have updated index header correctly.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 24 Jan 2011 00:31:05 +0200 |
parents | 4741f1b4f9b3 |
children | 3582271a897e |
files | src/lib-storage/index/dbox-common/dbox-storage.c src/lib-storage/index/dbox-multi/mdbox-storage.c src/lib-storage/index/dbox-single/sdbox-storage.c |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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)
--- 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)