aboutsummaryrefslogtreecommitdiff
path: root/weed/storage
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-02-18 19:10:20 -0800
committerChris Lu <chris.lu@gmail.com>2021-02-18 19:10:20 -0800
commit73958e357dba827cd82e3ed8b277d865aae37a72 (patch)
tree94637c8e0a90419a4517128170198f61eccf545c /weed/storage
parent776f49746930ef3eabf8361886161f18ca3e2c8c (diff)
downloadseaweedfs-73958e357dba827cd82e3ed8b277d865aae37a72.tar.xz
seaweedfs-73958e357dba827cd82e3ed8b277d865aae37a72.zip
add descriptive error if no free volumes
Diffstat (limited to 'weed/storage')
-rw-r--r--weed/storage/super_block/replica_placement.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/storage/super_block/replica_placement.go b/weed/storage/super_block/replica_placement.go
index fcccbba7d..65ec53819 100644
--- a/weed/storage/super_block/replica_placement.go
+++ b/weed/storage/super_block/replica_placement.go
@@ -6,9 +6,9 @@ import (
)
type ReplicaPlacement struct {
- SameRackCount int
- DiffRackCount int
- DiffDataCenterCount int
+ SameRackCount int `json:"node,omitempty"`
+ DiffRackCount int `json:"rack,omitempty"`
+ DiffDataCenterCount int `json:"dc,omitempty"`
}
func NewReplicaPlacementFromString(t string) (*ReplicaPlacement, error) {