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:
Markus Mäkelä
2018-11-23 13:45:25 +02:00
parent 925670ae2f
commit 9f6700b329

View File

@ -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);
}