volume: avoid compacting wait group

This commit is contained in:
Chris Lu
2019-07-21 13:49:59 -07:00
parent 4b15c8f0c4
commit 33b3366043
3 changed files with 1 additions and 8 deletions

View File

@@ -46,8 +46,6 @@ func (v *Volume) CommitCompact() error {
v.dataFileAccessLock.Lock()
defer v.dataFileAccessLock.Unlock()
glog.V(3).Infof("Got volume %d committing lock...", v.Id)
v.compactingWg.Add(1)
defer v.compactingWg.Done()
v.nm.Close()
if err := v.dataFile.Close(); err != nil {
glog.V(0).Infof("fail to close volume %d", v.Id)