]> source.dussan.org Git - rspamd.git/commitdiff
Fix stupid misprint
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 16 Jan 2016 22:41:51 +0000 (22:41 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 16 Jan 2016 22:41:51 +0000 (22:41 +0000)
src/libstat/backends/redis_backend.c
src/libstat/learn_cache/redis_cache.c

index 012ef89d960d40d1e2cbf76d9899eee7c7f837ca..8bcc2c0f96229ebd316629f9cebfd5fd6d3fd802 100644 (file)
@@ -886,7 +886,7 @@ rspamd_redis_init (struct rspamd_stat_ctx *ctx,
        backend->read_servers = rspamd_upstreams_create (cfg->ups_ctx);
        if (!rspamd_upstreams_from_ucl (backend->read_servers, elt,
                        REDIS_DEFAULT_PORT, NULL)) {
-               msg_err ("statfile %s cannot read servers configuration",
+               msg_err ("statfile %s cannot get read servers configuration",
                                stf->symbol);
                return NULL;
        }
@@ -896,9 +896,9 @@ rspamd_redis_init (struct rspamd_stat_ctx *ctx,
                /* Use read servers as write ones */
                g_assert (relt != NULL);
                backend->write_servers = rspamd_upstreams_create (cfg->ups_ctx);
-               if (!rspamd_upstreams_from_ucl (backend->read_servers, relt,
+               if (!rspamd_upstreams_from_ucl (backend->write_servers, relt,
                                REDIS_DEFAULT_PORT, NULL)) {
-                       msg_err ("statfile %s cannot read servers configuration",
+                       msg_err ("statfile %s cannot get write servers configuration",
                                        stf->symbol);
                        return NULL;
                }
@@ -907,7 +907,7 @@ rspamd_redis_init (struct rspamd_stat_ctx *ctx,
                backend->write_servers = rspamd_upstreams_create (cfg->ups_ctx);
                if (!rspamd_upstreams_from_ucl (backend->write_servers, elt,
                                REDIS_DEFAULT_PORT, NULL)) {
-                       msg_err ("statfile %s cannot write servers configuration",
+                       msg_err ("statfile %s cannot get write servers configuration",
                                        stf->symbol);
                        rspamd_upstreams_destroy (backend->write_servers);
                        backend->write_servers = NULL;
index 1c2eaebe2936ddb65061c0e5175f57bf7b578dcd..6cb3a87652075a00e720d70a11d8b8f92e384ca6 100644 (file)
@@ -223,9 +223,9 @@ rspamd_stat_cache_redis_init (struct rspamd_stat_ctx *ctx,
                /* Use read servers as write ones */
                g_assert (relt != NULL);
                cache_ctx->write_servers = rspamd_upstreams_create (cfg->ups_ctx);
-               if (!rspamd_upstreams_from_ucl (cache_ctx->read_servers, relt,
+               if (!rspamd_upstreams_from_ucl (cache_ctx->write_servers, relt,
                                REDIS_DEFAULT_PORT, NULL)) {
-                       msg_err ("statfile %s cannot get read servers configuration for the cache",
+                       msg_err ("statfile %s cannot get write servers configuration for the cache",
                                        stf->symbol);
                        return NULL;
                }