volume: change all writes to fsync during graceful stopping

fix https://github.com/chrislusf/seaweedfs/issues/2193
This commit is contained in:
Chris Lu
2021-07-13 01:29:57 -07:00
parent 01adc567aa
commit 49c66e88a0
3 changed files with 12 additions and 1 deletions

View File

@@ -112,6 +112,11 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
return vs
}
func (vs *VolumeServer) SetStopping() {
glog.V(0).Infoln("Stopping volume server...")
vs.store.SetStopping()
}
func (vs *VolumeServer) Shutdown() {
glog.V(0).Infoln("Shutting down volume server...")
vs.store.Close()