@@ -133,7 +133,7 @@ func (c *ProxyClient) SnapshotList(dataEngine, engineName, volumeName,
133133
134134func (c * ProxyClient ) SnapshotClone (dataEngine , engineName , volumeName , serviceAddress ,
135135 snapshotName , fromEngineAddress , fromVolumeName , fromEngineName string , fileSyncHTTPClientTimeout int ,
136- grpcTimeoutSeconds int64 , cloneMode string ) (err error ) {
136+ grpcTimeoutSeconds int64 , cloneMode string , dstReplicaSrcReplicaPairMap map [ string ] string ) (err error ) {
137137 input := map [string ]string {
138138 "engineName" : engineName ,
139139 "volumeName" : volumeName ,
@@ -166,14 +166,15 @@ func (c *ProxyClient) SnapshotClone(dataEngine, engineName, volumeName, serviceA
166166 DataEngine : rpc .DataEngine (driver ),
167167 VolumeName : volumeName ,
168168 },
169- FromEngineAddress : fromEngineAddress ,
170- SnapshotName : snapshotName ,
171- ExportBackingImageIfExist : false ,
172- FileSyncHttpClientTimeout : int32 (fileSyncHTTPClientTimeout ),
173- FromEngineName : fromEngineName ,
174- FromVolumeName : fromVolumeName ,
175- GrpcTimeoutSeconds : grpcTimeoutSeconds ,
176- CloneMode : getCloneMode (cloneMode ),
169+ FromEngineAddress : fromEngineAddress ,
170+ SnapshotName : snapshotName ,
171+ ExportBackingImageIfExist : false ,
172+ FileSyncHttpClientTimeout : int32 (fileSyncHTTPClientTimeout ),
173+ FromEngineName : fromEngineName ,
174+ FromVolumeName : fromVolumeName ,
175+ GrpcTimeoutSeconds : grpcTimeoutSeconds ,
176+ CloneMode : getCloneMode (cloneMode ),
177+ DstReplicaSrcReplicaPairMap : dstReplicaSrcReplicaPairMap ,
177178 }
178179 ctx , cancel := getContextWithGRPCLongTimeout (c .ctx , grpcTimeoutSeconds )
179180 defer cancel ()
0 commit comments