diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-02-16 05:59:43 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-02-16 05:59:43 -0800 |
| commit | 3097b9a9b7859dc41e9223df2ade8f21e3e6b3f6 (patch) | |
| tree | aedd3a7bc98eaab8fc9f04ad0ce13e97e34bfcaa /weed/topology/data_node_ec.go | |
| parent | ebf320ec2260f86558693f4bd8876df3bc6fb094 (diff) | |
| download | seaweedfs-3097b9a9b7859dc41e9223df2ade8f21e3e6b3f6.tar.xz seaweedfs-3097b9a9b7859dc41e9223df2ade8f21e3e6b3f6.zip | |
fix existence checking
Diffstat (limited to 'weed/topology/data_node_ec.go')
| -rw-r--r-- | weed/topology/data_node_ec.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/topology/data_node_ec.go b/weed/topology/data_node_ec.go index cd4c5cd8b..df1b6d658 100644 --- a/weed/topology/data_node_ec.go +++ b/weed/topology/data_node_ec.go @@ -62,7 +62,7 @@ func (dn *DataNode) UpdateEcShards(actualShards []*erasure_coding.EcVolumeInfo) deltaDiskUsages := newDiskUsages() deltaDiskUsage := deltaDiskUsages.getOrCreateDisk(types.ToDiskType(ecShards.DiskType)) - if dn.hasEcShards(ecShards.VolumeId) { + if !dn.hasEcShards(ecShards.VolumeId) { newShards = append(newShards, ecShards) newShardCount += ecShards.ShardIdCount() } |
