]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] #3129 Multiple classifiers on redis working incorrectly
authorresec <resec0109@gmail.com>
Thu, 7 Nov 2019 11:00:03 +0000 (19:00 +0800)
committerresec <resec0109@gmail.com>
Thu, 7 Nov 2019 11:00:03 +0000 (19:00 +0800)
src/libstat/backends/redis_backend.c
src/libstat/stat_process.c

index 7d79272c0995952907c4886c9f96c9e8247a27a3..08edf1a4f0f67cf0219f3d4734b24f301c941a9b 100644 (file)
@@ -1328,7 +1328,7 @@ rspamd_redis_connected (redisAsyncContext *c, gpointer r, gpointer priv)
                                msg_warn_task ("skip obtaining bayes tokens for %s of classifier "
                                                           "%s: not enough learns %d; %d required",
                                                rt->stcf->symbol, rt->stcf->clcf->name,
-                                               (int)rt->learned, rt->stcf->clcf->min_learns););
+                                               (int)rt->learned, rt->stcf->clcf->min_learns);
                        }
                }
        }
index 2ad7080d040fefa9ab5833e608928797842621cd..603e0ac963d6bb2da2b813085827069361022480 100644 (file)
@@ -342,7 +342,7 @@ rspamd_stat_classifiers_process (struct rspamd_stat_ctx *st_ctx,
                        if (bk_run != NULL) {
                                if (!st->backend->finalize_process (task, bk_run, st_ctx)) {
                                        skip = TRUE;
-                                       break
+                                       break;
                                }
                        }
                }