mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-21 11:00:08 +08:00
add other replica locations when assigning volumes
This commit is contained in:
@@ -31,6 +31,11 @@ func (dnll *VolumeLocationList) Head() *DataNode {
|
||||
return dnll.list[0]
|
||||
}
|
||||
|
||||
func (dnll *VolumeLocationList) Rest() []*DataNode {
|
||||
//mark first node as master volume
|
||||
return dnll.list[1:]
|
||||
}
|
||||
|
||||
func (dnll *VolumeLocationList) Length() int {
|
||||
if dnll == nil {
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user