Browse Source

close current needle map when switching

pull/302/head
Chris Lu 9 years ago
parent
commit
766512c475
  1. 1
      go/storage/volume_vacuum.go

1
go/storage/volume_vacuum.go

@ -28,6 +28,7 @@ func (v *Volume) commitCompact() error {
v.dataFileAccessLock.Lock() v.dataFileAccessLock.Lock()
defer v.dataFileAccessLock.Unlock() defer v.dataFileAccessLock.Unlock()
glog.V(3).Infof("Got Committing lock...") glog.V(3).Infof("Got Committing lock...")
v.nm.Close()
_ = v.dataFile.Close() _ = v.dataFile.Close()
var e error var e error
if e = os.Rename(v.FileName()+".cpd", v.FileName()+".dat"); e != nil { if e = os.Rename(v.FileName()+".cpd", v.FileName()+".dat"); e != nil {

Loading…
Cancel
Save