aboutsummaryrefslogtreecommitdiff
path: root/weed/shell
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-12-28 12:44:59 -0800
committerChris Lu <chris.lu@gmail.com>2019-12-28 12:44:59 -0800
commit37b64a50b4da90637f3f17a2b4bd79f55cbd3098 (patch)
tree3dc971dfff768d708e8509c78148fbfba84e1cb1 /weed/shell
parentc06f7eb48a82afee597e2f2a193a36c8058915eb (diff)
downloadseaweedfs-37b64a50b4da90637f3f17a2b4bd79f55cbd3098.tar.xz
seaweedfs-37b64a50b4da90637f3f17a2b4bd79f55cbd3098.zip
ec: generate and copy .vif file
Diffstat (limited to 'weed/shell')
-rw-r--r--weed/shell/command_ec_common.go1
-rw-r--r--weed/shell/command_ec_decode.go1
-rw-r--r--weed/shell/command_ec_rebuild.go1
3 files changed, 3 insertions, 0 deletions
diff --git a/weed/shell/command_ec_common.go b/weed/shell/command_ec_common.go
index 1d15a32cd..2beed4742 100644
--- a/weed/shell/command_ec_common.go
+++ b/weed/shell/command_ec_common.go
@@ -67,6 +67,7 @@ func oneServerCopyAndMountEcShardsFromSource(ctx context.Context, grpcDialOption
ShardIds: shardIdsToCopy,
CopyEcxFile: true,
CopyEcjFile: true,
+ CopyVifFile: true,
SourceDataNode: existingLocation,
})
if copyErr != nil {
diff --git a/weed/shell/command_ec_decode.go b/weed/shell/command_ec_decode.go
index 8ca035a8c..1f9ad2ff9 100644
--- a/weed/shell/command_ec_decode.go
+++ b/weed/shell/command_ec_decode.go
@@ -180,6 +180,7 @@ func collectEcShards(ctx context.Context, commandEnv *CommandEnv, nodeToEcIndexB
ShardIds: needToCopyEcIndexBits.ToUint32Slice(),
CopyEcxFile: false,
CopyEcjFile: true,
+ CopyVifFile: true,
SourceDataNode: loc,
})
if copyErr != nil {
diff --git a/weed/shell/command_ec_rebuild.go b/weed/shell/command_ec_rebuild.go
index 08732a309..2e2fca743 100644
--- a/weed/shell/command_ec_rebuild.go
+++ b/weed/shell/command_ec_rebuild.go
@@ -216,6 +216,7 @@ func prepareDataToRecover(ctx context.Context, commandEnv *CommandEnv, rebuilder
ShardIds: []uint32{uint32(shardId)},
CopyEcxFile: needEcxFile,
CopyEcjFile: needEcxFile,
+ CopyVifFile: needEcxFile,
SourceDataNode: ecNodes[0].info.Id,
})
return copyErr