mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
storage: remove unnecessary ForceCommit in kvstore.Close
s.b.Close will commit pending ops, so there is no need to FroceCommit it in kvstore.Close()
This commit is contained in:
parent
789e2f3426
commit
9f2e4c8a57
@ -233,7 +233,6 @@ func (s *store) Restore() error {
|
||||
func (s *store) Close() error {
|
||||
close(s.stopc)
|
||||
s.wg.Wait()
|
||||
s.b.ForceCommit()
|
||||
return s.b.Close()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user