--sourceinclude/have_innodb.inc--sourceinclude/have_debug_sync.inc# Save the initial number of concurrent sessions.--sourceinclude/count_sessions.incconnect(con1,localhost,root,,);connectiondefault;CREATETABLEt(aINTPRIMARYKEY,bINTNOTNULL)ENGINE=InnoDB;INSERTINTOtVALUES(1,2),(2,3);SETDEBUG_SYNC='alter_table_inplace_after_lock_downgrade SIGNAL do WAIT_FOR m';SETDEBUG_SYNC='innodb_after_inplace_alter_table SIGNAL scanned WAIT_FOR done';--sendCREATEINDEXtbONt(b);connectioncon1;SETDEBUG_SYNC='now WAIT_FOR do';SETDEBUG_SYNC='row_update_for_mysql_error SIGNAL m WAIT_FOR scanned';--errorER_DUP_ENTRYUPDATEtSETa=2WHEREa=1;callmtr.add_suppression('InnoDB: record in index .*tb was not found on rollback, trying to insert');SETDEBUG_SYNC='now SIGNAL done';disconnectcon1;connectiondefault;reap;SETDEBUG_SYNC='RESET';DROPTABLEt;# Check that all connections opened by test cases in this file are really# gone so execution of other tests won't be affected by their presence.--sourceinclude/wait_until_count_sessions.inc