Fix copyVolume function call with correct argument order and missing bool parameter

This commit is contained in:
Chris Lu committed 2026-02-24 23:09:23 -08:00
1 parent 8b376272d5
commit 7b4a190643
53 files changed
+333 -1

No files matched your search

+1 -1
View File
@@ -159,7 +159,7 @@ func (c *commandVolumeMerge) Do(args []string, commandEnv *CommandEnv, writer io
for _, replica := range replicas {
sourceServer := pb.NewServerAddressFromDataNode(replica.location.dataNode)
if _, err = copyVolume(commandEnv.option.GrpcDialOption, writer, volumeId, targetServer, sourceServer, "", 0); err != nil {
if _, err = copyVolume(commandEnv.option.GrpcDialOption, writer, volumeId, sourceServer, targetServer, "", 0, false); err != nil {
return err
}
}