]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Rename "index" event category to "mail-index"
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Sat, 4 Apr 2020 09:44:02 +0000 (12:44 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 15 Apr 2020 09:41:43 +0000 (12:41 +0300)
It's a bit too ambiguous to call it just "index" since we have so many
different ones.

src/lib-index/mail-index-private.h
src/lib-index/mail-index.c

index 5faf525f8d140e2a41ef09a1c00057bbcd510cb2..860c8c35edcfdfc136465ec6632a9348223dce35 100644 (file)
@@ -228,7 +228,7 @@ struct mail_index {
 };
 
 extern struct mail_index_module_register mail_index_module_register;
-extern struct event_category event_category_index;
+extern struct event_category event_category_mail_index;
 
 /* Add/replace sync handler for specified extra record. */
 void mail_index_register_expunge_handler(struct mail_index *index,
index e076441790bb711472e14b3dc2b26607ca42a367..fa9226efd656238c9d2ca617bc9bb8713aea396e 100644 (file)
@@ -27,8 +27,8 @@
 
 struct mail_index_module_register mail_index_module_register = { 0 };
 
-struct event_category event_category_index = {
-       .name = "index",
+struct event_category event_category_mail_index = {
+       .name = "mail-index",
 };
 
 static void mail_index_close_nonopened(struct mail_index *index);
@@ -65,7 +65,7 @@ struct mail_index *mail_index_alloc(struct event *parent_event,
        index->prefix = i_strdup(prefix);
        index->fd = -1;
        index->event = event_create(parent_event);
-       event_add_category(index->event, &event_category_index);
+       event_add_category(index->event, &event_category_mail_index);
 
        index->extension_pool =
                pool_alloconly_create(MEMPOOL_GROWING"index extension", 1024);