comparison src/lib-storage/index/dbox-single/sdbox-storage.c @ 12597:a349c50cddaa

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 a2780b694b2d
children 87f84a76fb1e
comparison
equal deleted inserted replaced
12596:d75d4841c890 12597:a349c50cddaa
319 319
320 static int 320 static int
321 dbox_mailbox_update(struct mailbox *box, const struct mailbox_update *update) 321 dbox_mailbox_update(struct mailbox *box, const struct mailbox_update *update)
322 { 322 {
323 if (!box->opened) { 323 if (!box->opened) {
324 if (index_storage_mailbox_open(box, FALSE) < 0) 324 if (mailbox_open(box) < 0)
325 return -1; 325 return -1;
326 } 326 }
327 if (update->cache_fields != NULL) 327 if (update->cache_fields != NULL)
328 index_storage_mailbox_update_cache_fields(box, update); 328 index_storage_mailbox_update_cache_fields(box, update);
329 return sdbox_write_index_header(box, update, NULL); 329 return sdbox_write_index_header(box, update, NULL);