Skip to content

Commit

Permalink
Reset server_to_be_closed false when reading query
Browse files Browse the repository at this point in the history
  • Loading branch information
lazio579 committed Apr 19, 2019
1 parent 7e68030 commit c041797
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ EXECUTE_PROCESS(COMMAND git describe --tags
)
MESSAGE(STATUS "building from ${GIT_REVISION}")
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
SET(CPACK_PACKAGE_VERSION_MINOR "1")
SET(CPACK_PACKAGE_VERSION_PATCH "1")
SET(CPACK_PACKAGE_VERSION_MINOR "3")
SET(CPACK_PACKAGE_VERSION_PATCH "0")
SET(CPACK_PACKAGE_VENDOR "MySQL")
SET(PACKAGE_NAME cetus)

Expand Down
1 change: 1 addition & 0 deletions plugins/proxy/proxy-plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1472,6 +1472,7 @@ NETWORK_MYSQLD_PLUGIN_PROTO(proxy_read_query)

int server_attr_changed = 0;
con->is_client_to_be_closed = 0;
con->server_to_be_closed = 0;
con->server_in_tran_and_auto_commit_received = 0;

if (con->server != NULL) {
Expand Down
2 changes: 1 addition & 1 deletion src/network-mysqld.c
Original file line number Diff line number Diff line change
Expand Up @@ -3626,7 +3626,7 @@ normal_read_query_result(network_mysqld_con *con, network_mysqld_con_state_t ost
while ((packet = g_queue_pop_head(con->server->recv_queue->chunks)) != NULL) {
network_mysqld_queue_append_raw(con->client, con->client->send_queue, packet);
}
if (con->client->send_queue->len > 0) {
if (!g_queue_is_empty(con->client->send_queue->chunks)) {
g_debug("%s: send_part_content_to_client", G_STRLOC);
send_part_content_to_client(con);
}
Expand Down

0 comments on commit c041797

Please sign in to comment.