diff options
| author | chrislu <chris.lu@gmail.com> | 2022-04-05 19:03:02 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-04-05 19:03:02 -0700 |
| commit | bc888226fc89f623391b78d4f642c63b7e100967 (patch) | |
| tree | fe4d1b360a10d1f8cf2b6a2d6f842bcfa1bee6b2 /weed/topology/data_node_ec.go | |
| parent | 8b3d76b24dc52a0d125c372b439d711a065b2d40 (diff) | |
| download | seaweedfs-bc888226fc89f623391b78d4f642c63b7e100967.tar.xz seaweedfs-bc888226fc89f623391b78d4f642c63b7e100967.zip | |
erasure coding: tracking encoded/decoded volumes
If an EC shard is created but not spread to other servers, the masterclient would think this shard is not located here.
Diffstat (limited to 'weed/topology/data_node_ec.go')
| -rw-r--r-- | weed/topology/data_node_ec.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/topology/data_node_ec.go b/weed/topology/data_node_ec.go index 330b16b24..bf72fa9af 100644 --- a/weed/topology/data_node_ec.go +++ b/weed/topology/data_node_ec.go @@ -58,7 +58,7 @@ func (dn *DataNode) UpdateEcShards(actualShards []*erasure_coding.EcVolumeInfo) } for _, ecShards := range actualShards { - if dn.hasEcShards(ecShards.VolumeId) { + if dn.HasEcShards(ecShards.VolumeId) { continue } @@ -79,7 +79,7 @@ func (dn *DataNode) UpdateEcShards(actualShards []*erasure_coding.EcVolumeInfo) return } -func (dn *DataNode) hasEcShards(volumeId needle.VolumeId) (found bool) { +func (dn *DataNode) HasEcShards(volumeId needle.VolumeId) (found bool) { dn.RLock() defer dn.RUnlock() for _, c := range dn.children { |
