lease:Add Unlock before break in loop
parent
84e2788c2e
commit
ce61cd4324
|
@ -201,6 +201,7 @@ func benchmarkLessorFindExpired(benchSize int, b *testing.B) {
|
|||
le.mu.Lock()
|
||||
ls := le.findExpiredLeases(findExpiredLimit)
|
||||
if len(ls) == 0 {
|
||||
le.mu.Unlock()
|
||||
break
|
||||
}
|
||||
le.mu.Unlock()
|
||||
|
|
Loading…
Reference in New Issue