diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-09-16 19:18:23 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-09-16 19:18:23 +0400 |
commit | 18e0c770b951c5d8a1269b3829b73a416fc261fe (patch) | |
tree | 31ab1e9eee734251a883b0e9409f7983fedd940d /src/filter.c | |
parent | e2d78f30503d3f02eec9925f2e222b7b1493f1ad (diff) | |
download | rspamd-18e0c770b951c5d8a1269b3829b73a416fc261fe.tar.gz rspamd-18e0c770b951c5d8a1269b3829b73a416fc261fe.zip |
* Fix shared usage of statfiles
* Add invalidation of statfiles in case of learning, so now statfiles
are invalidated in about a minute after learning
* This should fix shared usage of statfile pool by several processes
Diffstat (limited to 'src/filter.c')
-rw-r--r-- | src/filter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/filter.c b/src/filter.c index 7d1de3d20..f38831c00 100644 --- a/src/filter.c +++ b/src/filter.c @@ -444,6 +444,7 @@ process_autolearn (struct statfile *st, struct worker_task *task, GTree * tokens classifier->learn_func (ctx, task->worker->srv->statfile_pool, st->symbol, tokens, TRUE, NULL, 1., NULL); maybe_write_binlog (ctx->cfg, st, statfile, tokens); + statfile_pool_plan_invalidate (task->worker->srv->statfile_pool, DEFAULT_STATFILE_INVALIDATE_TIME, DEFAULT_STATFILE_INVALIDATE_JITTER); } } } |