dovecot-2.2: lib-storage: If stats plugin is enabled, set fs_set...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Sep 22 13:42:28 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/8166cb1a32ba
changeset: 19185:8166cb1a32ba
user: Timo Sirainen <tss at iki.fi>
date: Tue Sep 22 16:40:58 2015 +0300
description:
lib-storage: If stats plugin is enabled, set fs_settings.enable_timings=TRUE.
diffstat:
src/lib-storage/mail-user.c | 1 +
src/lib-storage/mail-user.h | 2 ++
src/plugins/stats/stats-plugin.c | 1 +
3 files changed, 4 insertions(+), 0 deletions(-)
diffs (34 lines):
diff -r 5ceab761d8d6 -r 8166cb1a32ba src/lib-storage/mail-user.c
--- a/src/lib-storage/mail-user.c Tue Sep 22 16:38:59 2015 +0300
+++ b/src/lib-storage/mail-user.c Tue Sep 22 16:40:58 2015 +0300
@@ -568,6 +568,7 @@
fs_set->base_dir = user->set->base_dir;
fs_set->temp_dir = user->set->mail_temp_dir;
fs_set->debug = user->mail_debug;
+ fs_set->enable_timing = user->stats_enabled;
fs_set->ssl_client_set = ssl_set;
ssl_set->ca_dir = mail_set->ssl_client_ca_dir;
diff -r 5ceab761d8d6 -r 8166cb1a32ba src/lib-storage/mail-user.h
--- a/src/lib-storage/mail-user.h Tue Sep 22 16:38:59 2015 +0300
+++ b/src/lib-storage/mail-user.h Tue Sep 22 16:40:58 2015 +0300
@@ -87,6 +87,8 @@
unsigned int deinitializing:1;
/* Enable administrator user commands for the user */
unsigned int admin:1;
+ /* Enable all statistics gathering */
+ unsigned int stats_enabled:1;
};
struct mail_user_module_register {
diff -r 5ceab761d8d6 -r 8166cb1a32ba src/plugins/stats/stats-plugin.c
--- a/src/plugins/stats/stats-plugin.c Tue Sep 22 16:38:59 2015 +0300
+++ b/src/plugins/stats/stats-plugin.c Tue Sep 22 16:40:58 2015 +0300
@@ -425,6 +425,7 @@
p_strdup(user->pool, guid_128_to_string(guid));
}
suser->last_session_update = time(NULL);
+ user->stats_enabled = TRUE;
suser->ioloop_ctx = ioloop_ctx;
io_loop_context_add_callbacks(ioloop_ctx,
More information about the dovecot-cvs
mailing list