From 67ed7583532ffa6697edb189ec0d28b513512822 Mon Sep 17 00:00:00 2001 From: lazio579 Date: Fri, 18 Jan 2019 19:11:05 +0800 Subject: [PATCH] Don't release sharding plan in the wrong place --- plugins/shard/shard-plugin.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/shard/shard-plugin.c b/plugins/shard/shard-plugin.c index e043132..922d058 100644 --- a/plugins/shard/shard-plugin.c +++ b/plugins/shard/shard-plugin.c @@ -443,10 +443,6 @@ explain_shard_sql(network_mysqld_con *con, sharding_plan_t *plan) static void proxy_generate_shard_explain_packet(network_mysqld_con *con) { - if (con->sharding_plan) { - sharding_plan_free(con->sharding_plan); - g_message(G_STRLOC ": shard plan is not empty:%s", con->orig_sql->str); - } sharding_plan_t *plan = sharding_plan_new(con->orig_sql); plan->is_partition_mode = con->srv->is_partition_mode; if (explain_shard_sql(con, plan) != 0) {