Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential deadlock with LOCK_index between BinlogWrapper and rli_…
…relay_log_raft_reset Summary: There's a potential deadlock where plugin's BinlogWrapper::IsReadyForAppend acquires smutex -> LOCK_index but in D57198631, we introduced order of LOCK_index->smutex in rli_relay_log_raft_reset() To fix this, we can unlock the LOCK_index much earlier. Test Plan: ``` ~/mysql/tools/mysqltest-internal.sh --testset=Rpl_raft --raft --workers=4 --parallel=4 rpl_raft_purge_raft_logs_during_promotion ``` Reviewers: abhinavsharma, yichenshen, chili, #mysql_dar Reviewed By: chili Differential Revision: https://phabricator.intern.facebook.com/D59862336
- Loading branch information