nextdreamblue commented on code in PR #11942: URL: https://github.com/apache/doris/pull/11942#discussion_r950968930
########## fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java: ########## @@ -162,14 +166,17 @@ public RestoreJob() { } public RestoreJob(String label, String backupTs, long dbId, String dbName, BackupJobInfo jobInfo, boolean allowLoad, - ReplicaAllocation replicaAlloc, long timeoutMs, int metaVersion, Env env, long repoId) { + ReplicaAllocation replicaAlloc, long timeoutMs, int metaVersion, boolean reserveReplica, Env env, + long repoId) { super(JobType.RESTORE, label, dbId, dbName, timeoutMs, env, repoId); this.backupTimestamp = backupTs; this.jobInfo = jobInfo; this.allowLoad = allowLoad; this.replicaAlloc = replicaAlloc; this.state = RestoreJobState.PENDING; this.metaVersion = metaVersion; + this.reserveReplica = reserveReplica; + properties.put(PROP_RESERVE_REPLICA, String.valueOf(reserveReplica)); Review Comment: 把该值放到properties,只是为了通过properties来持久化到元数据,否则元数据会有前后兼容问题 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org