From: Vsevolod Stakhov Date: Tue, 9 Jul 2019 17:01:19 +0000 (+0100) Subject: [Minor] Process all stat backends even in case of failure X-Git-Tag: 2.0~614 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=74f35a297bede82503e83fa16b0b8ad55aeec75e;p=rspamd.git [Minor] Process all stat backends even in case of failure --- diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index 24fcd7312..e8e08f6d1 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -273,6 +273,7 @@ rspamd_stat_backends_post_process (struct rspamd_stat_ctx *st_ctx, struct rspamd_statfile *st; struct rspamd_classifier *cl; gpointer bk_run; + gboolean ret = TRUE; g_assert (task->stat_runtimes != NULL); @@ -288,12 +289,12 @@ rspamd_stat_backends_post_process (struct rspamd_stat_ctx *st_ctx, if (bk_run != NULL) { if (!st->backend->finalize_process (task, bk_run, st_ctx)) { - return FALSE; + ret = FALSE; } } } - return TRUE; + return ret; } static void