aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_ec_decode.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-12-23 18:06:13 -0800
committerChris Lu <chris.lu@gmail.com>2019-12-23 18:06:13 -0800
commita18f62bbe7e5e477fd891849b44ec5a25d8988d2 (patch)
treefe3486dd2482bbdd5d7504f6b8404db875bd8b7a /weed/shell/command_ec_decode.go
parentc7d5a0b00cd69f719a46ee3692f123c8deac1e20 (diff)
downloadseaweedfs-a18f62bbe7e5e477fd891849b44ec5a25d8988d2.tar.xz
seaweedfs-a18f62bbe7e5e477fd891849b44ec5a25d8988d2.zip
only copy required shards
Diffstat (limited to 'weed/shell/command_ec_decode.go')
-rw-r--r--weed/shell/command_ec_decode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_ec_decode.go b/weed/shell/command_ec_decode.go
index 5ea359b2b..4ec1a7e8f 100644
--- a/weed/shell/command_ec_decode.go
+++ b/weed/shell/command_ec_decode.go
@@ -164,7 +164,7 @@ func collectEcShards(ctx context.Context, commandEnv *CommandEnv, nodeToEcIndexB
continue
}
- needToCopyEcIndexBits := ecIndexBits.Minus(exisitngEcIndexBits)
+ needToCopyEcIndexBits := ecIndexBits.Minus(exisitngEcIndexBits).MinusParityShards()
if needToCopyEcIndexBits.ShardIdCount() == 0 {
continue
}