mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 06:47:24 +08:00
volume: change all writes to fsync during graceful stopping
fix https://github.com/chrislusf/seaweedfs/issues/2193
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user