mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
close current needle map when switching
This commit is contained in:
parent
3626ec5cf7
commit
766512c475
|
@ -28,6 +28,7 @@ func (v *Volume) commitCompact() error {
|
|||
v.dataFileAccessLock.Lock()
|
||||
defer v.dataFileAccessLock.Unlock()
|
||||
glog.V(3).Infof("Got Committing lock...")
|
||||
v.nm.Close()
|
||||
_ = v.dataFile.Close()
|
||||
var e error
|
||||
if e = os.Rename(v.FileName()+".cpd", v.FileName()+".dat"); e != nil {
|
||||
|
|
Loading…
Reference in a new issue