add a command to force compaction of a volume, removing deleted files

This commit is contained in:
Chris Lu
2013-09-28 22:18:52 -07:00
parent 738e528329
commit 3f5f8657d2
4 changed files with 47 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ func (s *Store) CompactVolume(volumeIdString string) error {
return fmt.Errorf("Volume Id %s is not a valid unsigned integer!", volumeIdString)
}
if v := s.findVolume(vid); v != nil {
return v.compact()
return v.Compact()
}
return fmt.Errorf("volume id %s is not found during compact!", vid)
}