From 766512c47523f65b345331bb632bd6a864890fec Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 9 May 2016 10:04:21 -0700 Subject: [PATCH] close current needle map when switching --- go/storage/volume_vacuum.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/storage/volume_vacuum.go b/go/storage/volume_vacuum.go index 7377afdc9..5ba8d575c 100644 --- a/go/storage/volume_vacuum.go +++ b/go/storage/volume_vacuum.go @@ -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 {