Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kv: fix lock ordering in Replica.applySnapshot
Fixes #60479. ad78116 was a nice improvement that avoided a number of tricky questions about exposing an inconsistent in-memory replica state during a snapshot. However, it appears to have introduced a deadlock due to lock ordering issues (see referenced issue). This commit fixes that issue by locking the Store mutex before the Replica mutex in `Replica.applySnapshot`'s combined critical section. Release note: None
- Loading branch information