diff options
author | Daniele Sciascia <daniele.sciascia@galeracluster.com> | 2017-03-13 22:45:42 +0100 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2017-07-20 14:16:57 +0300 |
commit | be416cfa3b6ec6faad3e0ac273fc8698de61094d (patch) | |
tree | fa93c55dc6376d7d0ba6e7ac4384c6a660578127 | |
parent | 34853fa7937b8081516eddb0226e8031f06ba96f (diff) | |
download | mariadb-git-be416cfa3b6ec6faad3e0ac273fc8698de61094d.tar.gz |
MW-86 Removed unnecessary wsrep_sync_wait before processing SQLCOM_REPLACE
Sync waiting before processing SQLCOM_REPLACE was not necessary given that
this case falls through to processing of SQLCOM_INSERT. In case of
SQLCOM_REPLACE, wsrep_sync_wait would be called twice.
Signed-off-by: Jan Lindström <jan.lindstrom@mariadb.com>
-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 c222adbbac2..52b18318849 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -3254,7 +3254,6 @@ end_with_restore_list: break; } case SQLCOM_REPLACE: - WSREP_SYNC_WAIT(thd, WSREP_SYNC_WAIT_BEFORE_INSERT_REPLACE); #ifndef DBUG_OFF if (mysql_bin_log.is_open()) { |