comparison src/plugins/fts-lucene/fts-backend-lucene.c @ 17790:73eb8be089a5

fts-lucene: Include the mailbox name also in the rebuilding warning.
author Timo Sirainen <tss@iki.fi>
date Thu, 11 Sep 2014 16:12:38 +0300
parents f3df2eb2ce8e
children ef55b00eef2a
comparison
equal deleted inserted replaced
17789:f3df2eb2ce8e 17790:73eb8be089a5
195 if (fts_index_get_header(box, &hdr)) { 195 if (fts_index_get_header(box, &hdr)) {
196 set_checksum = fts_lucene_settings_checksum(&fuser->set); 196 set_checksum = fts_lucene_settings_checksum(&fuser->set);
197 if (!fts_index_have_compatible_settings(_backend->ns->list, 197 if (!fts_index_have_compatible_settings(_backend->ns->list,
198 set_checksum)) { 198 set_checksum)) {
199 /* need to rebuild the index */ 199 /* need to rebuild the index */
200 i_warning("fts-lucene: Settings have changed, rebuilding index"); 200 i_warning("fts-lucene: Settings have changed, rebuilding index for mailbox %s",
201 mailbox_get_vname(box));
201 *last_uid_r = 0; 202 *last_uid_r = 0;
202 } else { 203 } else {
203 *last_uid_r = hdr.last_indexed_uid; 204 *last_uid_r = hdr.last_indexed_uid;
204 } 205 }
205 return 0; 206 return 0;