]> source.dussan.org Git - rspamd.git/commitdiff
Increase number of messages learned
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 22 Jan 2016 13:38:49 +0000 (13:38 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 22 Jan 2016 13:38:49 +0000 (13:38 +0000)
Issue: #492
Reported by: @mnik247

src/libstat/stat_process.c

index e9324d2ca8a65b65296ba0f02591d90be7087f65..8de3620020309f08eb0b4e4d59844c75941b644f 100644 (file)
@@ -598,6 +598,8 @@ rspamd_stat_backends_post_learn (struct rspamd_stat_ctx *st_ctx,
                }
        }
 
+       g_atomic_int_add (&task->worker->srv->stat->messages_learned, 1);
+
        return res;
 }