dataroaring commented on code in PR #57013:
URL: https://github.com/apache/doris/pull/57013#discussion_r2434730426


##########
fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java:
##########
@@ -2720,7 +2720,7 @@ protected void 
setTableStateToNormalAndUpdateProperties(Database db, boolean com
                         partition.setState(PartitionState.NORMAL);
                     }
                 }
-                if (committed && reserveDynamicPartitionEnable) {
+                if (committed && (reserveDynamicPartitionEnable || 
olapTbl.getPartitionPreservedNum() > 0)) {
                     if (DynamicPartitionUtil.isDynamicPartitionTable(tbl)) {

Review Comment:
   If resverved_num > 0, the code does not do anything?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to