shuwenwei commented on code in PR #13878:
URL: https://github.com/apache/iotdb/pull/13878#discussion_r1843244887
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/snapshot/SnapshotTaker.java:
##########
@@ -206,10 +206,10 @@ private boolean createSnapshot(List<TsFileResource>
resources, String snapshotId
createHardLink(
new File(snapshotTsFile.getAbsolutePath() +
TsFileResource.RESOURCE_SUFFIX),
new File(tsFile.getAbsolutePath() +
TsFileResource.RESOURCE_SUFFIX));
- if (resource.getModFile().exists()) {
+ if (resource.exclusiveModFileExists()) {
Review Comment:
Also copy the shared mods files if it does not exist in snapshot dir.
--
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]