This is an automated email from the ASF dual-hosted git repository.
xingtanzjr pushed a commit to branch ml_add_peer
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/ml_add_peer by this push:
new cf2f3d9619 change getAbsolutePath to getCanonicalPath
cf2f3d9619 is described below
commit cf2f3d9619d6d94cc38081d22be64cc66b827d0d
Author: Jinrui.Zhang <[email protected]>
AuthorDate: Tue Sep 6 15:24:27 2022 +0800
change getAbsolutePath to getCanonicalPath
---
.../java/org/apache/iotdb/db/engine/snapshot/SnapshotTaker.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/server/src/main/java/org/apache/iotdb/db/engine/snapshot/SnapshotTaker.java
b/server/src/main/java/org/apache/iotdb/db/engine/snapshot/SnapshotTaker.java
index 004793bfa2..626588cfe8 100644
---
a/server/src/main/java/org/apache/iotdb/db/engine/snapshot/SnapshotTaker.java
+++
b/server/src/main/java/org/apache/iotdb/db/engine/snapshot/SnapshotTaker.java
@@ -150,12 +150,12 @@ public class SnapshotTaker {
// create hard link for tsfile, resource, mods
createHardLink(snapshotTsFile, tsFile);
createHardLink(
- new File(snapshotTsFile.getAbsolutePath() +
TsFileResource.RESOURCE_SUFFIX),
- new File(tsFile.getAbsolutePath() +
TsFileResource.RESOURCE_SUFFIX));
+ new File(snapshotTsFile.getCanonicalPath() +
TsFileResource.RESOURCE_SUFFIX),
+ new File(tsFile.getCanonicalPath() +
TsFileResource.RESOURCE_SUFFIX));
if (resource.getModFile().exists()) {
createHardLink(
- new File(snapshotTsFile.getAbsolutePath() +
ModificationFile.FILE_SUFFIX),
- new File(tsFile.getAbsolutePath() +
ModificationFile.FILE_SUFFIX));
+ new File(snapshotTsFile.getCanonicalPath() +
ModificationFile.FILE_SUFFIX),
+ new File(tsFile.getCanonicalPath() +
ModificationFile.FILE_SUFFIX));
}
}
return true;