From 260fcf85ec3f302ae46c6f33cc72bfc287998bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 25 Apr 2018 17:01:58 +0300 Subject: [PATCH] Remove false debug assertion A prepared statement ID of 0 is allowed. --- server/modules/routing/readwritesplit/rwsplit_route_stmt.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc b/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc index a9ad6c16e..3357aef37 100644 --- a/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc +++ b/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc @@ -274,7 +274,6 @@ bool route_single_stmt(RWSplit *inst, RWSplitSession *rses, GWBUF *querybuf, con /** Track the targets of the COM_STMT_EXECUTE statements. This * information is used to route all COM_STMT_FETCH commands * to the same server where the COM_STMT_EXECUTE was done. */ - ss_dassert(stmt_id > 0); rses->exec_map[stmt_id] = target; MXS_INFO("COM_STMT_EXECUTE on %s", target->uri()); }