From: Vsevolod Stakhov Date: Tue, 26 Jan 2016 14:00:43 +0000 (+0000) Subject: Another fix to redis events logic X-Git-Tag: 1.1.2~31 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=37ac7d9587286f91e6c4dbccdcb2559ca962ea94;p=rspamd.git Another fix to redis events logic --- 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); } }