You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2025/10/30 10:14:11 UTC
(iotdb) 01/14: fix ttl deletion
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch new_object_type
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 5981bbae1a31f358ae93228d8aeb263af12e73af
Author: shuwenwei <s1...@gmail.com>
AuthorDate: Sat Jul 12 09:24:13 2025 +0800
fix ttl deletion
---
.../src/main/java/org/apache/iotdb/db/utils/ObjectTypeUtils.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/ObjectTypeUtils.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/ObjectTypeUtils.java
index fc1bb40b93f..c66e3ffd05d 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/ObjectTypeUtils.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/ObjectTypeUtils.java
@@ -62,9 +62,8 @@ public class ObjectTypeUtils {
if (!file.isPresent()) {
return;
}
- File parentFile = file.get().getParentFile();
- File tmpFile = new File(parentFile, file.get().getName().replace(".bin", ".tmp"));
- File bakFile = new File(parentFile, file.get().getName().replace(".bin", ".bak"));
+ File tmpFile = new File(file.get().getPath() + ".tmp");
+ File bakFile = new File(file.get().getPath() + ".bak");
logger.info("Remove object file {}", file.get().getAbsolutePath());
for (int i = 0; i < 2; i++) {
try {