Mercurial > dovecot > core-2.2
comparison src/lib-storage/list/mailbox-list-index-notify.c @ 21226:a4d4a5dffa09
lib-storge: Call mail_storage.list_index_corrupted() when needed
The callback is called whenever mailbox list index appears to be corrupted
with LAYOUT=index. The storage is responsible for adding to the index any
mailboxes that are missing.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 24 Nov 2016 17:52:01 +0200 |
parents | 0f22db71df7a |
children | 59437f8764c6 |
comparison
equal
deleted
inserted
replaced
21225:2f077146c48e | 21226:a4d4a5dffa09 |
---|---|
776 struct mailbox_list_notify_index *inotify = | 776 struct mailbox_list_notify_index *inotify = |
777 (struct mailbox_list_notify_index *)notify; | 777 (struct mailbox_list_notify_index *)notify; |
778 | 778 |
779 if (!inotify->initialized) | 779 if (!inotify->initialized) |
780 mailbox_list_index_notify_read_init(inotify); | 780 mailbox_list_index_notify_read_init(inotify); |
781 if (mailbox_list_index_handle_corruption(notify->list) < 0) | |
782 return -1; | |
783 | |
781 while (mailbox_list_index_notify_try_next(inotify)) { | 784 while (mailbox_list_index_notify_try_next(inotify)) { |
782 if ((inotify->notify_rec.events & inotify->notify.mask) != 0) { | 785 if ((inotify->notify_rec.events & inotify->notify.mask) != 0) { |
783 *rec_r = &inotify->notify_rec; | 786 *rec_r = &inotify->notify_rec; |
784 return 1; | 787 return 1; |
785 } else { | 788 } else { |