Skip connection_keepalive during transaction_replay
When a transaction is replayed, there is no target but the routing was "successful".
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user