You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ma...@apache.org on 2023/01/31 10:53:44 UTC
[iotdb] branch master updated: [IOTDB-5395] Update file metrics when loading tsfile
This is an automated email from the ASF dual-hosted git repository.
marklau99 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new b3117e4b32 [IOTDB-5395] Update file metrics when loading tsfile
b3117e4b32 is described below
commit b3117e4b32385dbcaca8f3adc31f6e236b36519c
Author: Liu Xuxin <37...@users.noreply.github.com>
AuthorDate: Tue Jan 31 18:53:37 2023 +0800
[IOTDB-5395] Update file metrics when loading tsfile
---
.../main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java b/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java
index 18e66034ee..9225141008 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java
@@ -2326,6 +2326,9 @@ public class DataRegion implements IDataRegionForQuery {
newFilePartitionId,
insertPos,
deleteOriginFile);
+ TsFileMetricManager.getInstance()
+ .addFile(
+ newTsFileResource.getTsFile().length(), tsFileType == LoadTsFileType.LOAD_SEQUENCE);
resetLastCacheWhenLoadingTsFile(); // update last cache
updateLastFlushTime(newTsFileResource); // update last flush time