sadanand48 commented on code in PR #8899:
URL: https://github.com/apache/ozone/pull/8899#discussion_r2275448959


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmSnapshotManager.java:
##########
@@ -843,9 +843,20 @@ public static String 
getSnapshotLocalPropertyYamlPath(OMMetadataManager omMetada
     return getSnapshotPath(omMetadataManager, snapshotInfo) + ".yaml";
   }
 
+  /**
+   * Returns the path to the YAML file that stores local properties for the 
given snapshot.
+   *
+   * @param conf ozone configuration object
+   * @param checkpointDirName name of the snapshot checkpoint dir
+   * @return the path to the snapshot's local property YAML file
+   */
   public static String getSnapshotLocalPropertyYamlPath(OzoneConfiguration 
conf,
-      SnapshotInfo snapshotInfo) {
-    return getSnapshotPath(conf, snapshotInfo) + ".yaml";
+       String checkpointDirName) {
+    String checkpointName = checkpointDirName;
+    if (checkpointDirName.startsWith(OM_DB_NAME)) {
+      checkpointName = checkpointDirName.substring(OM_DB_NAME.length());
+    }
+    return getSnapshotPath(conf, checkpointName) + ".yaml";

Review Comment:
   Done.



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