commit 4b88e9b: [Minor] Fix list splice
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Sep 13 09:56:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-09-13 10:51:45 +0100
URL: https://github.com/rspamd/rspamd/commit/4b88e9bcb192892b12a9c87bb409abf7e8d784d3 (HEAD -> master)
[Minor] Fix list splice
---
src/libserver/redis_pool.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libserver/redis_pool.cxx b/src/libserver/redis_pool.cxx
index 84e101105..fdbd544cc 100644
--- a/src/libserver/redis_pool.cxx
+++ b/src/libserver/redis_pool.cxx
@@ -145,7 +145,7 @@ public:
auto move_to_terminating(redis_pool_connection *conn) -> void
{
- inactive.splice(std::end(inactive), terminating, conn->elt_pos);
+ terminating.splice(std::end(terminating), terminating, conn->elt_pos);
conn->elt_pos = std::prev(std::end(terminating));
}
More information about the Commits
mailing list