aboutsummaryrefslogtreecommitdiff
path: root/weed/admin/topology/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/admin/topology/structs.go')
-rw-r--r--weed/admin/topology/structs.go19
1 files changed, 10 insertions, 9 deletions
diff --git a/weed/admin/topology/structs.go b/weed/admin/topology/structs.go
index f2d29eb5f..103ee5abe 100644
--- a/weed/admin/topology/structs.go
+++ b/weed/admin/topology/structs.go
@@ -96,13 +96,12 @@ type ActiveTopology struct {
// DestinationPlan represents a planned destination for a volume/shard operation
type DestinationPlan struct {
- TargetNode string `json:"target_node"`
- TargetDisk uint32 `json:"target_disk"`
- TargetRack string `json:"target_rack"`
- TargetDC string `json:"target_dc"`
- ExpectedSize uint64 `json:"expected_size"`
- PlacementScore float64 `json:"placement_score"`
- Conflicts []string `json:"conflicts"`
+ TargetNode string `json:"target_node"`
+ TargetDisk uint32 `json:"target_disk"`
+ TargetRack string `json:"target_rack"`
+ TargetDC string `json:"target_dc"`
+ ExpectedSize uint64 `json:"expected_size"`
+ PlacementScore float64 `json:"placement_score"`
}
// MultiDestinationPlan represents multiple planned destinations for operations like EC
@@ -115,6 +114,8 @@ type MultiDestinationPlan struct {
// VolumeReplica represents a replica location with server and disk information
type VolumeReplica struct {
- ServerID string `json:"server_id"`
- DiskID uint32 `json:"disk_id"`
+ ServerID string `json:"server_id"`
+ DiskID uint32 `json:"disk_id"`
+ DataCenter string `json:"data_center"`
+ Rack string `json:"rack"`
}