Merge pull request #11301 from lzhfromustc/MU_benchmarkL

lease:Add Unlock before break in loop
This commit is contained in:
Gyuho Lee 2019-10-31 10:13:27 -07:00 committed by GitHub
commit cb0ba4af59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()