diff --git a/server/modules/routing/readwritesplit/readwritesplit.c b/server/modules/routing/readwritesplit/readwritesplit.c index 7fae4ee27..a8568806e 100644 --- a/server/modules/routing/readwritesplit/readwritesplit.c +++ b/server/modules/routing/readwritesplit/readwritesplit.c @@ -2061,10 +2061,6 @@ static bool route_single_stmt( (query_str == NULL ? "(empty)" : query_str)); free(query_str); succp = false; - while(querybuf) - { - querybuf = GWBUF_CONSUME_ALL(querybuf); - } goto retblock; }