commit 334d21b: [Minor] Stat: Set more sane default prefix when users scripts are set
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Feb 11 11:28:05 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-02-11 11:13:36 +0000
URL: https://github.com/rspamd/rspamd/commit/334d21b2d5da3144f7117d8a0448746353db1a24
[Minor] Stat: Set more sane default prefix when users scripts are set
---
src/libstat/backends/redis_backend.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c
index b003d5a27..10d348ac9 100644
--- a/src/libstat/backends/redis_backend.c
+++ b/src/libstat/backends/redis_backend.c
@@ -1310,7 +1310,7 @@ rspamd_redis_parse_classifier_opts (struct redis_stat_ctx *backend,
elt = ucl_object_lookup (obj, "prefix");
if (elt == NULL || ucl_object_type (elt) != UCL_STRING) {
/* Default non-users statistics */
- if (backend->enable_users && backend->cbref_user == -1) {
+ if (backend->enable_users || backend->cbref_user != -1) {
backend->redis_object = REDIS_DEFAULT_USERS_OBJECT;
}
else {
More information about the Commits
mailing list