aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_redis.c
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-10-05 17:25:08 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-10-05 17:25:08 +0100
commit20744cb7b2b47f6b0c515fba7e0cb335eefc0213 (patch)
tree0740d28fdc809a4abe77a77f010f34d3237b48bb /src/lua/lua_redis.c
parentbfb211b3a5daedc461c4f4f1047c3ee828710df1 (diff)
downloadrspamd-20744cb7b2b47f6b0c515fba7e0cb335eefc0213.tar.gz
rspamd-20744cb7b2b47f6b0c515fba7e0cb335eefc0213.zip
[Minor] is_successful != fatal
Diffstat (limited to 'src/lua/lua_redis.c')
-rw-r--r--src/lua/lua_redis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c
index 5b2ba0062..c2037b144 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -196,7 +196,7 @@ lua_redis_dtor (struct lua_redis_ctx *ctx)
ud->terminated = 1;
ac = ud->ctx;
ud->ctx = NULL;
- rspamd_redis_pool_release_connection (ud->pool, ac, is_successful);
+ rspamd_redis_pool_release_connection (ud->pool, ac, !is_successful);
}
LL_FOREACH_SAFE (ud->specific, cur, tmp) {