diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-25 11:46:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-25 11:46:51 +0100 |
commit | ab06871bb21a55789120c271eb6b7ad02033b95c (patch) | |
tree | 29e3afb9f05f39c0a34fa80944f6a6ed4712795f /src/libstat | |
parent | d17bb4e4351cde0624e1a703f30aac03a127fc92 (diff) | |
download | rspamd-ab06871bb21a55789120c271eb6b7ad02033b95c.tar.gz rspamd-ab06871bb21a55789120c271eb6b7ad02033b95c.zip |
[Minor] Try to fix cmake stupidity
Diffstat (limited to 'src/libstat')
-rw-r--r-- | src/libstat/backends/redis_backend.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c index 57a2c1343..43688cb7c 100644 --- a/src/libstat/backends/redis_backend.c +++ b/src/libstat/backends/redis_backend.c @@ -1588,6 +1588,16 @@ rspamd_redis_process_tokens (struct rspamd_task *task, rspamd_session_add_event (task->s, rspamd_redis_fin, rt, M); rt->has_event = TRUE; + query = rspamd_redis_tokens_to_query (task, rt, tokens, + rt->ctx->new_schema ? "HGET" : "HMGET", + rt->redis_object_expanded, FALSE, -1, + rt->stcf->clcf->flags & RSPAMD_FLAG_CLASSIFIER_INTEGER); + g_assert (query != NULL); + rspamd_mempool_add_destructor (task->task_pool, + (rspamd_mempool_destruct_t)rspamd_fstring_free, query); + + ret = redisAsyncFormattedCommand (rt->redis, rspamd_redis_processed, rt, + query->str, query->len); if (ev_is_active (&rt->timeout_event)) { rt->timeout_event.repeat = rt->ctx->timeout; @@ -1600,17 +1610,6 @@ rspamd_redis_process_tokens (struct rspamd_task *task, ev_timer_start (task->event_loop, &rt->timeout_event); } - query = rspamd_redis_tokens_to_query (task, rt, tokens, - rt->ctx->new_schema ? "HGET" : "HMGET", - rt->redis_object_expanded, FALSE, -1, - rt->stcf->clcf->flags & RSPAMD_FLAG_CLASSIFIER_INTEGER); - g_assert (query != NULL); - rspamd_mempool_add_destructor (task->task_pool, - (rspamd_mempool_destruct_t)rspamd_fstring_free, query); - - ret = redisAsyncFormattedCommand (rt->redis, rspamd_redis_processed, rt, - query->str, query->len); - if (ret == REDIS_OK) { return TRUE; } |