fix: revert chain sync mutex to a regular lock
Conditions always call "unlock" so we can't safely use the condition with both the read and write side of lock. So we might as well revert back to a regular lock. fixes #10616
This commit is contained in:
@@ -188,7 +188,7 @@ type SplitStore struct {
|
||||
cancel func()
|
||||
|
||||
outOfSync int32 // for fast checking
|
||||
chainSyncMx sync.RWMutex
|
||||
chainSyncMx sync.Mutex
|
||||
chainSyncCond sync.Cond
|
||||
chainSyncFinished bool // protected by chainSyncMx
|
||||
|
||||
|
||||
Reference in New Issue
Block a user