Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deadlock on rewrite of opHistory when history limit is reached (c…
…hzyer#69) It is possible for `opHistory.Rewrite` to be called from `opHistory.historyUpdatePath`. This is problematic, because both methods grab a lock, and Mutexes in go are not reentrant. This change pulls out the logic in Rewrite into `opHistory.rewriteLocked`, and retains the public facing method.
- Loading branch information