mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjusting log messages
This commit is contained in:
parent
4846a7232e
commit
6671f576cb
|
@ -129,13 +129,12 @@ func (vg *VolumeGrowth) grow(topo *topology.Topology, vid storage.VolumeId, repT
|
||||||
vi := &storage.VolumeInfo{Id: vid, Size: 0}
|
vi := &storage.VolumeInfo{Id: vid, Size: 0}
|
||||||
server.AddOrUpdateVolume(vi)
|
server.AddOrUpdateVolume(vi)
|
||||||
topo.RegisterVolumeLayout(vi, server)
|
topo.RegisterVolumeLayout(vi, server)
|
||||||
fmt.Println("added", vid, "to", server)
|
fmt.Println("Created Volume", vid, "on", server)
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("Failed to assign", vid, "to", servers)
|
fmt.Println("Failed to assign", vid, "to", servers)
|
||||||
return errors.New("Failed to assign " + vid.String())
|
return errors.New("Failed to assign " + vid.String())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Println("Assigning", vid, "to", servers)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,7 @@ func (n *NodeImpl) LinkChildNode(node Node) {
|
||||||
n.UpAdjustMaxVolumeId(node.GetMaxVolumeId())
|
n.UpAdjustMaxVolumeId(node.GetMaxVolumeId())
|
||||||
n.UpAdjustActiveVolumeCountDelta(node.GetActiveVolumeCount())
|
n.UpAdjustActiveVolumeCountDelta(node.GetActiveVolumeCount())
|
||||||
node.setParent(n)
|
node.setParent(n)
|
||||||
fmt.Println(n, "adds", node, "volumeCount =", n.activeVolumeCount)
|
fmt.Println(n, "adds child", node)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue