mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-12-02 03:47:41 +08:00
Set con server nil when freeing servers
This commit is contained in:
parent
42b79a77ed
commit
02da03eaf6
@ -666,6 +666,10 @@ proxy_put_shard_conn_to_pool(network_mysqld_con *con)
|
||||
|
||||
g_ptr_array_free(con->servers, TRUE);
|
||||
con->servers = NULL;
|
||||
if (con->server) {
|
||||
g_message("%s: con server is not NULL when having freed servers", G_STRLOC);
|
||||
con->server = NULL;
|
||||
}
|
||||
con->client->is_server_conn_reserved = 0;
|
||||
con->attr_adj_state = ATTR_START;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user