mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-22 02:37:25 +08:00
remove volume server /admin/volume/delete
This commit is contained in:
@@ -254,14 +254,3 @@ func (s *Store) UnmountVolume(i VolumeId) error {
|
||||
|
||||
return fmt.Errorf("Volume %d not found on disk", i)
|
||||
}
|
||||
|
||||
func (s *Store) DeleteVolume(i VolumeId) error {
|
||||
for _, location := range s.Locations {
|
||||
if error := location.deleteVolumeById(i); error == nil {
|
||||
s.DeletedVolumeIdChan <- VolumeId(i)
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("Volume %d not found on disk", i)
|
||||
}
|
||||
|
Reference in New Issue
Block a user