Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,9 @@ public RestoreJob(String label, String backupTs, long dbId, String dbName, Backu
this.metaVersion = metaVersion;
this.reserveReplica = reserveReplica;
this.reserveColocate = reserveColocate;
// if backup snapshot is come from a cluster with force replication allocation, ignore the origin allocation
if (jobInfo.isForceReplicationAllocation) {
// if is cloud mode or backup snapshot is come from a cluster with force replication allocation,
// ignore the origin allocation
if (Config.isCloudMode() || jobInfo.isForceReplicationAllocation) {
this.reserveReplica = false;
}
this.reserveDynamicPartitionEnable = reserveDynamicPartitionEnable;
Expand Down
Loading