mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
mvcc: remove stopc select case in Hash
Revert change in 33acbb694b
.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
8ffd58fb3b
commit
5000d29b4a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user