aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-22 17:45:31 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-22 17:45:31 +0000
commit371093712b71980450cd0c554ba5f342f24ff877 (patch)
tree098a592f65e26593c8959175c2f531500d2319a9 /src
parenta499ed1c7b71badd986d529d04d7680af8ed0a61 (diff)
downloadrspamd-371093712b71980450cd0c554ba5f342f24ff877.tar.gz
rspamd-371093712b71980450cd0c554ba5f342f24ff877.zip
Minor fixes
Diffstat (limited to 'src')
-rw-r--r--src/libmime/filter.c2
-rw-r--r--src/libserver/re_cache.c2
-rw-r--r--src/libserver/symbols_cache.c1
-rw-r--r--src/libstat/backends/sqlite3_backend.c2
4 files changed, 5 insertions, 2 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c
index 48115375f..1a8531160 100644
--- a/src/libmime/filter.c
+++ b/src/libmime/filter.c
@@ -205,7 +205,7 @@ insert_metric_result (struct rspamd_task *task,
g_hash_table_insert (metric_res->symbols, (gpointer) symbol, s);
}
- debug_task ("symbol %s, score %.2f, metric %s, factor: %f",
+ msg_debug ("symbol %s, score %.2f, metric %s, factor: %f",
symbol,
s->score,
metric->name,
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c
index 63af03202..f989b64a7 100644
--- a/src/libserver/re_cache.c
+++ b/src/libserver/re_cache.c
@@ -762,6 +762,8 @@ rspamd_re_cache_exec_re (struct rspamd_task *task,
}
#endif
+ setbit (rt->checked, re_id);
+
return rt->results[re_id];
}
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c
index e64c35e2a..742d79a0f 100644
--- a/src/libserver/symbols_cache.c
+++ b/src/libserver/symbols_cache.c
@@ -1067,6 +1067,7 @@ rspamd_symbols_cache_check_symbol (struct rspamd_task *task,
rspamd_session_watch_start (task->s, rspamd_symbols_cache_watcher_cb,
item);
+ msg_debug_task ("execute %s, %d", item->symbol, item->id);
item->func (task, item->user_data);
t2 = rspamd_get_ticks ();
diff --git a/src/libstat/backends/sqlite3_backend.c b/src/libstat/backends/sqlite3_backend.c
index e6ef68a23..7b9cc8a42 100644
--- a/src/libstat/backends/sqlite3_backend.c
+++ b/src/libstat/backends/sqlite3_backend.c
@@ -896,7 +896,7 @@ rspamd_sqlite3_finalize_learn (struct rspamd_task *task, gpointer runtime,
{
struct rspamd_stat_sqlite3_rt *rt = runtime;
struct rspamd_stat_sqlite3_db *bk;
- gint rc, wal_frames, wal_checkpointed, mode;
+ gint wal_frames, wal_checkpointed, mode;
g_assert (rt != NULL);
bk = rt->db;