From 9f6700b329449be5457e0fe06ccba8a30572f352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 23 Nov 2018 13:45:25 +0200 Subject: [PATCH] Skip connection_keepalive during transaction_replay When a transaction is replayed, there is no target but the routing was "successful". --- server/modules/routing/readwritesplit/rwsplit_route_stmt.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc b/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc index b3d21c427..92ccb980c 100644 --- a/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc +++ b/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc @@ -344,7 +344,7 @@ bool RWSplitSession::route_single_stmt(GWBUF* querybuf) } } - if (succp && m_config.connection_keepalive && !TARGET_IS_ALL(route_target)) + if (succp && target && m_config.connection_keepalive && !TARGET_IS_ALL(route_target)) { handle_connection_keepalive(target); }