Skip to content

Commit 727015f

Browse files
committed
dumb deadlock play
Signed-off-by: grokspawn <[email protected]>
1 parent 52a4979 commit 727015f

File tree

1 file changed

+3
-2
lines changed
  • pkg/controller/registry/resolver/cache

1 file changed

+3
-2
lines changed

pkg/controller/registry/resolver/cache/cache.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,13 @@ func (hdr *snapshotHeader) Valid() bool {
336336
}
337337

338338
func (hdr *snapshotHeader) RequestSentinelActive() bool {
339+
// hdr.m.RLock()
340+
// defer hdr.m.RUnlock()
339341
if hdr == nil {
340342
return false
341343
}
342344

343-
hdr.m.RLock()
344-
defer hdr.m.RUnlock()
345+
345346
return time.Now().Before(hdr.requestSentinel)
346347
}
347348

0 commit comments

Comments
 (0)