diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-26 14:00:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-26 14:00:43 +0000 |
commit | 37ac7d9587286f91e6c4dbccdcb2559ca962ea94 (patch) | |
tree | a00e980e61a10b4021f8b46127cab53b46959eaf /src/libstat/backends | |
parent | 9216b42e39225e28c20e452a1c389929ba8ba7b8 (diff) | |
download | rspamd-37ac7d9587286f91e6c4dbccdcb2559ca962ea94.tar.gz rspamd-37ac7d9587286f91e6c4dbccdcb2559ca962ea94.zip |
Another fix to redis events logic
Diffstat (limited to 'src/libstat/backends')
-rw-r--r-- | src/libstat/backends/redis_backend.c | 7 |
1 files changed, 1 insertions, 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); } } |