Explorar el Código

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()
Yicheng Qin hace 10 años
padre
commit
9f2e4c8a57
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      storage/kvstore.go

+ 0 - 1
storage/kvstore.go

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