mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #11301 from lzhfromustc/MU_benchmarkL
lease:Add Unlock before break in loop
This commit is contained in:
commit
cb0ba4af59
@ -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