aswinshakil commented on code in PR #6226:
URL: https://github.com/apache/ozone/pull/6226#discussion_r1501250274


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/OmSnapshotUtils.java:
##########
@@ -137,13 +139,31 @@ public static void createHardLinks(Path dbPath) throws 
IOException {
     }
   }
 
+  private static void createHardLinksOrCopy(Path fullFromPath, Path 
fullToPath) throws IOException {
+    if (isSamePartition(fullFromPath.getParent(), fullToPath.getParent())) {
+      Files.createLink(fullToPath, fullFromPath);
+    } else {
+      Files.copy(fullFromPath, fullToPath, 
StandardCopyOption.REPLACE_EXISTING);

Review Comment:
   The file shouldn't exist at all, I'm doing a replace just as a precaution. 
I'm following the normal OM bootstrap process, We don't do a checksum check for 
that either. 



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