mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 20:06:19 +08:00
add a command to force compaction of a volume, removing deleted files
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user