From 42b01beaca349200cc5c8dbf20e70faa7ae2c27a Mon Sep 17 00:00:00 2001 From: hzxuzhonghu Date: Tue, 19 Dec 2017 11:18:15 +0800 Subject: [PATCH] Cacher stopLock should be unlocked --- staging/src/k8s.io/apiserver/pkg/storage/cacher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/apiserver/pkg/storage/cacher.go b/staging/src/k8s.io/apiserver/pkg/storage/cacher.go index 27ead5a1d78..0f5b4e2ff28 100644 --- a/staging/src/k8s.io/apiserver/pkg/storage/cacher.go +++ b/staging/src/k8s.io/apiserver/pkg/storage/cacher.go @@ -655,7 +655,7 @@ func (c *Cacher) Stop() { } c.stopLock.Lock() if c.stopped { - // avoid that it was locked meanwhile as isStopped only read-locks + c.stopLock.Unlock() return } c.stopped = true