diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-11-09 21:05:38 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-11-09 21:05:38 +0300 |
commit | 161f4d012cb00bf40853a0bb59f22d1373dbff53 (patch) | |
tree | 49e5f5941760d871fc5229b235ac9dae2dce2034 /src/filter.c | |
parent | 19857603612f664b37ac627aab2325a5497131ee (diff) | |
download | rspamd-161f4d012cb00bf40853a0bb59f22d1373dbff53.tar.gz rspamd-161f4d012cb00bf40853a0bb59f22d1373dbff53.zip |
* Avoid mmap'ing in binlog as mmapped areas must be aligned
* Make binlog working for writing
* Add config params for binlog
Diffstat (limited to 'src/filter.c')
-rw-r--r-- | src/filter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/filter.c b/src/filter.c index 11683d0d4..ca3270f47 100644 --- a/src/filter.c +++ b/src/filter.c @@ -32,6 +32,7 @@ #include "expressions.h" #include "settings.h" #include "view.h" +#include "binlog.h" #include "classifiers/classifiers.h" #include "tokenizers/tokenizers.h" @@ -488,6 +489,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); + maybe_write_binlog (ctx->cfg, st->symbol, tokens); } } } |