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:
Yicheng Qin 2015-06-18 13:36:23 -07:00
parent 789e2f3426
commit 9f2e4c8a57

View File

@ -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()
}