This commit is contained in:
Chris Lu 2020-05-17 20:20:21 -07:00
parent 91b91d6cb7
commit 75179544c3

View file

@ -191,6 +191,7 @@ func spreadEcShards(commandEnv *CommandEnv, volumeId needle.VolumeId, collection
// ask the source volume server to delete the original volume // ask the source volume server to delete the original volume
for _, location := range existingLocations { for _, location := range existingLocations {
fmt.Printf("delete volume %d from %s\n", volumeId, location.Url)
err = deleteVolume(commandEnv.option.GrpcDialOption, volumeId, location.Url) err = deleteVolume(commandEnv.option.GrpcDialOption, volumeId, location.Url)
if err != nil { if err != nil {
return fmt.Errorf("deleteVolume %s volume %d: %v", location.Url, volumeId, err) return fmt.Errorf("deleteVolume %s volume %d: %v", location.Url, volumeId, err)