mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-03 18:47:41 +01:00
lots of fix
1. sending 404 if not found 2. handle node-up/node-down/changing-max/volume-become-full
This commit is contained in:
1 parent
eae0080d75
commit
a1bc529db6
9 files changed
+156
-129
No files matched your search
@@ -126,7 +126,7 @@ func (vg *VolumeGrowth) GrowByCountAndType(count int, repType storage.Replicatio
|
||||
func (vg *VolumeGrowth) grow(topo *topology.Topology, vid storage.VolumeId, repType storage.ReplicationType, servers ...*topology.DataNode) error {
|
||||
for _, server := range servers {
|
||||
if err := AllocateVolume(server, vid, repType); err == nil {
|
||||
vi := storage.VolumeInfo{Id: vid, Size: 0}
|
||||
vi := storage.VolumeInfo{Id: vid, Size: 0, RepType:repType}
|
||||
server.AddOrUpdateVolume(vi)
|
||||
topo.RegisterVolumeLayout(&vi, server)
|
||||
fmt.Println("Created Volume", vid, "on", server)
|
||||
|
||||
Reference in new issue
Block a user