smengcl commented on code in PR #9150:
URL: https://github.com/apache/ozone/pull/9150#discussion_r2478550975


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/OmSnapshotLocalDataManager.java:
##########
@@ -249,8 +263,32 @@ void addVersionNodeWithDependents(OmSnapshotLocalData 
snapshotLocalData) throws
     }
   }
 
-  private void init() throws IOException {
+  private void increamentOrphanCheckCount(UUID snapshotId) {

Review Comment:
   ```suggestion
     private void incrementOrphanCheckCount(UUID snapshotId) {
   ```



##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/OmSnapshotLocalDataManager.java:
##########
@@ -249,8 +263,32 @@ void addVersionNodeWithDependents(OmSnapshotLocalData 
snapshotLocalData) throws
     }
   }
 
-  private void init() throws IOException {
+  private void increamentOrphanCheckCount(UUID snapshotId) {
+    if (snapshotId != null) {
+      this.snapshotToBeCheckedForOrphans.compute(snapshotId, (k, v) -> v == 
null ? 1 : (v + 1));
+    }
+  }
+
+  private void decreamentOrphanCheckCount(UUID snapshotId, int decrementBy) {

Review Comment:
   ```suggestion
     private void decrementOrphanCheckCount(UUID snapshotId, int decrementBy) {
   ```



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