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>
This commit is contained in:
Daniele Sciascia 2017-03-13 22:45:42 +01:00 committed by Jan Lindström
parent 34853fa793
commit be416cfa3b

View File

@ -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())
{