Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit 0f74e7c

Browse files
committed
Fix unlock order
1 parent 63f1394 commit 0f74e7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

idx/memory/priority_lock.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ func (pm *PriorityRWMutex) Lock() BlockContext {
7575
// Unlock unlocks mutex acquired via Lock
7676
func (pm *PriorityRWMutex) Unlock(bc *BlockContext) {
7777
bc.postOpTime = time.Now()
78-
pm.lowPrioLock.Unlock()
7978
pm.lock.Unlock()
79+
pm.lowPrioLock.Unlock()
8080
}
8181

8282
func (bc *BlockContext) RUnlockLow(op string, logCb func() interface{}) {

0 commit comments

Comments
 (0)