diff options
Diffstat (limited to 'weed/topology/topology_ec.go')
| -rw-r--r-- | weed/topology/topology_ec.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/weed/topology/topology_ec.go b/weed/topology/topology_ec.go index eb52b44b4..050a0b901 100644 --- a/weed/topology/topology_ec.go +++ b/weed/topology/topology_ec.go @@ -7,11 +7,9 @@ import ( "github.com/chrislusf/seaweedfs/weed/storage/needle" ) -const shardCount = erasure_coding.DataShardsCount + erasure_coding.ParityShardsCount - type EcShardLocations struct { Collection string - locations [shardCount][]*DataNode + locations [erasure_coding.TotalShardsCount][]*DataNode } func (t *Topology) SyncDataNodeEcShards(shardInfos []*master_pb.VolumeEcShardInformationMessage, dn *DataNode) (newShards, deletedShards []*erasure_coding.EcVolumeInfo) { |
