Mercurial > dovecot > core-2.2
changeset 20405:8518e1a31640
lib-storage: Added a kludgy quick-"parameter" to list_index_has_changed()
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Tue, 21 Jun 2016 21:39:49 +0300 |
parents | 416efabe7a0d |
children | 15a74a75d401 |
files | src/lib-storage/list/mailbox-list-index-status.c src/lib-storage/mail-storage-private.h |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/list/mailbox-list-index-status.c Tue Jun 21 21:06:22 2016 +0300 +++ b/src/lib-storage/list/mailbox-list-index-status.c Tue Jun 21 21:39:49 2016 +0300 @@ -786,8 +786,11 @@ /* our in-memory tree is out of sync */ ret = 1; } else T_BEGIN { + /* kludge: avoid breaking API for v2.2.x. Fixed in v2.3.x. */ + box->list_index_has_changed_quick = TRUE; ret = box->v.list_index_has_changed == NULL ? 0 : box->v.list_index_has_changed(box, view, seq); + box->list_index_has_changed_quick = FALSE; } T_END; if (ret != 0) {
--- a/src/lib-storage/mail-storage-private.h Tue Jun 21 21:06:22 2016 +0300 +++ b/src/lib-storage/mail-storage-private.h Tue Jun 21 21:39:49 2016 +0300 @@ -410,6 +410,8 @@ unsigned int update_first_saved:1; /* mailbox_verify_create_name() only checks for mailbox_verify_name() */ unsigned int skip_create_name_restrictions:1; + /* v2.2.x API kludge: quick-parameter to list_index_has_changed() */ + unsigned int list_index_has_changed_quick:1; }; struct mail_vfuncs {