mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 16:36:50 +08:00
for moved volumes, redirect with code 501
This commit is contained in:
@@ -136,6 +136,11 @@ func (s *Store) Read(i VolumeId, n *Needle) (int, error) {
|
||||
return 0, errors.New("Not Found")
|
||||
}
|
||||
|
||||
func (s *Store) HasVolume(i VolumeId) bool {
|
||||
_, ok := s.volumes[i]
|
||||
return ok
|
||||
}
|
||||
|
||||
type VolumeLocations struct {
|
||||
Vid VolumeId
|
||||
Locations []string
|
||||
|
||||
Reference in New Issue
Block a user