diff --git a/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc b/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc index a563660e0..9c9a196de 100644 --- a/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc +++ b/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc @@ -58,7 +58,7 @@ static SRWBackend compare_backends(SRWBackend a, SRWBackend b, select_criteria_t return a; } - return p(a, b) < 0 ? a : b; + return p(a, b) <= 0 ? a : b; } void handle_connection_keepalive(RWSplit *inst, RWSplitSession *rses,