diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2020-01-30 21:11:24 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2020-01-30 21:11:24 +0100 |
commit | 64437d040bfdb61c92efd33301a676ca02f342c8 (patch) | |
tree | b0e48a67ce25bbeacde680621fa5292806c376fd /sql/sql_parse.cc | |
parent | 4d61f1247a1b6a86570cb03d3450930a78d689b3 (diff) | |
download | mariadb-git-10.4-MDEV-16308.tar.gz |
MDEV-16308 : protocol messed up sporadically10.4-MDEV-16308
Context involves semicolon batching, and the error starts 10.2
No reproducible examples were made yet, but TCP trace suggests
multiple packets that are "squeezed" together (e.g overlong OK packet
that has a trailer which is belongs to another packet)
Remove thd->get_stmt_da()->set_skip_flush() when processing a batch.
skip_flush stems from the COM_MULTI code, which was checked in during
10.2 (and is never used)
The preliminary "fix" is by suspicion, to be evaluated by volunteers.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 2c74f15aa17..9af4afd4b03 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -1844,7 +1844,6 @@ bool dispatch_command(enum enum_server_command command, THD *thd, while (!thd->killed && (parser_state.m_lip.found_semicolon != NULL) && ! thd->is_error()) { - thd->get_stmt_da()->set_skip_flush(); /* Multiple queries exist, execute them individually */ |