yandrey321 commented on code in PR #9773:
URL: https://github.com/apache/ozone/pull/9773#discussion_r2814077990
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OMDBCheckpointServletInodeBasedXfer.java:
##########
@@ -500,14 +502,12 @@ private boolean collectFilesFromDir(Set<String>
sstFilesToExclude, Stream<Path>
continue;
}
String fileId =
OmSnapshotUtils.getFileInodeAndLastModifiedTimeString(dbFile);
- if (omdbArchiver.getHardLinkFileMap() != null) {
- String path = dbFile.toFile().getAbsolutePath();
- // if the file is in the om checkpoint dir, then we need to change
the path to point to the OM DB.
- if (path.contains(OM_CHECKPOINT_DIR)) {
- path =
getDbStore().getDbLocation().toPath().resolve(dbFile.getFileName()).toAbsolutePath().toString();
- }
- omdbArchiver.getHardLinkFileMap().put(path, fileId);
+ String path = dbFile.toFile().getAbsolutePath();
Review Comment:
can this one be null or empty?
--
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]