From 5000d29b4a840e4f271311f25c2eb0ff0eecd905 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Mon, 17 Apr 2017 14:19:48 -0700 Subject: [PATCH] mvcc: remove stopc select case in Hash Revert change in https://github.com/coreos/etcd/pull/7105/commits/33acbb694b81f0d4a254936195d706a0b29ce158. Signed-off-by: Gyu-Ho Lee --- mvcc/kvstore.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/mvcc/kvstore.go b/mvcc/kvstore.go index 6a0e4167dd0..36b3d9a261d 100644 --- a/mvcc/kvstore.go +++ b/mvcc/kvstore.go @@ -146,13 +146,6 @@ func (s *store) compactBarrier(ctx context.Context, ch chan struct{}) { } func (s *store) Hash() (hash uint32, revision int64, err error) { - // TODO: nothing should be able to call into backend when closed - select { - case <-s.stopc: - return 0, 0, ErrClosed - default: - } - s.b.ForceCommit() h, err := s.b.Hash(DefaultIgnores) return h, s.currentRev, err