From 37ac7d9587286f91e6c4dbccdcb2559ca962ea94 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 26 Jan 2016 14:00:43 +0000 Subject: [PATCH] Another fix to redis events logic --- src/libstat/backends/redis_backend.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c index a4c62e426..140e2ffa3 100644 --- a/src/libstat/backends/redis_backend.c +++ b/src/libstat/backends/redis_backend.c @@ -746,9 +746,7 @@ rspamd_redis_connected (redisAsyncContext *c, gpointer r, gpointer priv) rspamd_session_remove_event (task->s, rspamd_redis_fin, rt); } else { - msg_err_task ("error getting reply from redis server %s: %s", - rspamd_upstream_name (rt->selected), c->errstr); - rspamd_upstream_fail (rt->selected); + /* This could be caused by removing redis context forcefully */ rspamd_session_remove_event (task->s, rspamd_redis_fin, rt); } } @@ -817,9 +815,6 @@ rspamd_redis_processed (redisAsyncContext *c, gpointer r, gpointer priv) rspamd_session_remove_event (task->s, rspamd_redis_fin, rt); } else { - msg_err_task ("error getting reply from redis server %s: %s", - rspamd_upstream_name (rt->selected), c->errstr); - rspamd_upstream_fail (rt->selected); rspamd_session_remove_event (task->s, rspamd_redis_fin, rt); } } -- 2.39.5