Skip to content

Commit f81d9ef

Browse files
sciascidJan Lindström
authored andcommitted
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.
1 parent df5b90e commit f81d9ef

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sql/sql_parse.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3697,7 +3697,6 @@ case SQLCOM_PREPARE:
36973697
break;
36983698
}
36993699
case SQLCOM_REPLACE:
3700-
WSREP_SYNC_WAIT(thd, WSREP_SYNC_WAIT_BEFORE_INSERT_REPLACE);
37013700
#ifndef DBUG_OFF
37023701
if (mysql_bin_log.is_open())
37033702
{

0 commit comments

Comments
 (0)