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


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/OmSnapshotUtils.java:
##########
@@ -124,20 +129,28 @@ public static Path createHardLinkList(int truncateLength,
    * Create hard links listed in OM_HARDLINK_FILE.
    *
    * @param dbPath Path to db to have links created.
+   * @param deleteSourceFiles - Whether to delete the source files after 
creating the links.
    */
-  public static void createHardLinks(Path dbPath) throws IOException {
+  public static void createHardLinks(Path dbPath, boolean deleteSourceFiles) 
throws IOException {

Review Comment:
   the source files would be of the format "inodeid+timeStamp". Once the 
hardlinks that point to right file name have been created say 
inodeId1+timestamp1 -> 1.sst then the source file would be deleted .



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