Mercurial > dovecot > core-2.2
comparison src/lib-storage/index/dbox-common/dbox-storage.c @ 13474:1903d5fd7e76
lib-storage: Minor error handling cleanups.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 08 Sep 2011 11:16:55 +0300 |
parents | 44d0474a451e |
children | 490a85b869e0 |
comparison
equal
deleted
inserted
replaced
13473:1a6528646e11 | 13474:1903d5fd7e76 |
---|---|
200 | 200 |
201 /* use syncing as a lock */ | 201 /* use syncing as a lock */ |
202 ret = mail_index_sync_begin(box->index, &sync_ctx, &view, &trans, 0); | 202 ret = mail_index_sync_begin(box->index, &sync_ctx, &view, &trans, 0); |
203 if (ret <= 0) { | 203 if (ret <= 0) { |
204 i_assert(ret != 0); | 204 i_assert(ret != 0); |
205 mail_storage_set_internal_error(box->storage); | 205 mail_storage_set_index_error(box); |
206 mail_index_reset_error(box->index); | |
207 return -1; | 206 return -1; |
208 } | 207 } |
209 | 208 |
210 if (mail_index_get_header(view)->uid_validity == 0) { | 209 if (mail_index_get_header(view)->uid_validity == 0) { |
211 if (storage->v.mailbox_create_indexes(box, update, trans) < 0) { | 210 if (storage->v.mailbox_create_indexes(box, update, trans) < 0) { |