summaryrefslogtreecommitdiffstats
path: root/src/filter.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-11-09 21:05:38 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-11-09 21:05:38 +0300
commit161f4d012cb00bf40853a0bb59f22d1373dbff53 (patch)
tree49e5f5941760d871fc5229b235ac9dae2dce2034 /src/filter.c
parent19857603612f664b37ac627aab2325a5497131ee (diff)
downloadrspamd-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.c2
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);
}
}
}