]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix list splice
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 16 Sep 2021 09:34:57 +0000 (10:34 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 16 Sep 2021 09:34:57 +0000 (10:34 +0100)
src/libserver/redis_pool.cxx

index 8a460b7fe111ba534144fbfdec99b5fd7b45c8e4..8cdb12587142e97762b5c25cb490a9ed464fb755 100644 (file)
@@ -145,7 +145,7 @@ public:
 
        auto move_to_terminating(redis_pool_connection *conn) -> void
        {
-               terminating.splice(std::end(terminating), terminating, conn->elt_pos);
+               terminating.splice(std::end(terminating), inactive, conn->elt_pos);
                conn->elt_pos = std::prev(std::end(terminating));
        }