aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_ec_common.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-06-05 23:20:26 -0700
committerChris Lu <chris.lu@gmail.com>2019-06-05 23:20:26 -0700
commitd344e0a035985ce7a28a6f7a4499199ef27aeda3 (patch)
tree77f094232aab9c2e767adb05f81c4e7a9453c2e2 /weed/shell/command_ec_common.go
parent450f4733cec38ec31c66b296749e2d0b14e91218 (diff)
downloadseaweedfs-d344e0a035985ce7a28a6f7a4499199ef27aeda3.tar.xz
seaweedfs-d344e0a035985ce7a28a6f7a4499199ef27aeda3.zip
fix ec related bugs
Diffstat (limited to 'weed/shell/command_ec_common.go')
-rw-r--r--weed/shell/command_ec_common.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/weed/shell/command_ec_common.go b/weed/shell/command_ec_common.go
index 4c53ba43b..041715908 100644
--- a/weed/shell/command_ec_common.go
+++ b/weed/shell/command_ec_common.go
@@ -35,7 +35,14 @@ func moveMountedShardToEcNode(ctx context.Context, commandEnv *CommandEnv, exist
}
// ask source node to delete the shard, and maybe the ecx file
- return sourceServerDeleteEcShards(ctx, commandEnv.option.GrpcDialOption, collection, vid, existingLocation.info.Id, copiedShardIds)
+ err = sourceServerDeleteEcShards(ctx, commandEnv.option.GrpcDialOption, collection, vid, existingLocation.info.Id, copiedShardIds)
+ if err != nil {
+ return err
+ }
+
+ deleteEcVolumeShards(existingLocation, vid, copiedShardIds)
+
+ return nil
}