]> source.dussan.org Git - rspamd.git/commitdiff
Another fix to redis events logic
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Jan 2016 14:00:43 +0000 (14:00 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Jan 2016 14:00:43 +0000 (14:00 +0000)
src/libstat/backends/redis_backend.c

index a4c62e42630876028bcf1369f8a92a94c61067ca..140e2ffa3cd43376abbb5665ac13abf1aa67195c 100644 (file)
@@ -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);
                }
        }