-
unknown authored
Bug#23831 deadlock not noticed RBR bug in that when replicated msta (multi-statement-trans-action) deadlocks with a local at write row event or gets timed-out, the event handler did not return the correct error code. Wrong error code stops slave sql thread instead of to proceed with rollback and replay. The correct code is typed in error log and stored for error handling rotine to conduct rollback and replay of the transaction. The handling for the rbr remains the same as for the sbr events. Particularly, timed-out transaction still is rolled back - look at the related bugs. mysql-test/extra/rpl_tests/rpl_deadlock.test: fixing deadlock stimulation, commented on potential race condition and left todo. mysql-test/r/rpl_deadlock_innodb.result: changed sql/log_event.cc: returning the correct errors for write row event type; storing DL, TO error codes to check at grand-caller in step with sbr.
5a7bbcd5