nooneuse commented on code in PR #66307:
URL: https://github.com/apache/doris/pull/66307#discussion_r3796055942


##########
fe/fe-core/src/main/java/org/apache/doris/backup/RestoreJob.java:
##########
@@ -2158,7 +2165,27 @@ protected Status allTabletCommitted(boolean isReplay) {
         if (db == null) {
             return new Status(ErrCode.NOT_FOUND, "database " + dbId + " does 
not exist");
         }
+        com.google.common.collect.Table<Long, Long, SnapshotInfo> 
savedSnapshotInfos = snapshotInfos;
+        Status status;
+        if (!isAtomicRestore) {
+            status = finishAllTabletsCommitted(db, isReplay);
+        } else {
+            if (!db.writeLockIfExist()) {
+                return Status.OK;
+            }
+            try {
+                status = finishAllTabletsCommitted(db, isReplay);

Review Comment:
   alright.



-- 
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