mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
lease:Add Unlock before break in loop
This commit is contained in:
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…
x
Reference in New Issue
Block a user