Skip to content

Commit

Permalink
mvcc: remove stopc select case in Hash
Browse files Browse the repository at this point in the history
Revert change in 33acbb6.

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
  • Loading branch information
gyuho committed Apr 17, 2017
1 parent 8ffd58f commit 5000d29
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mvcc/kvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5000d29

Please sign in to comment.