You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2023/01/31 01:06:49 UTC

[iotdb] branch rel/1.0 updated: Revert "[To rel/1.0][IOTDB-5426] Cannot trigger flush for sequence file when timed flush enabled (#8925)" (#8935)

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch rel/1.0
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/1.0 by this push:
     new 271e6c8300 Revert "[To rel/1.0][IOTDB-5426] Cannot trigger flush for sequence file when timed flush enabled (#8925)" (#8935)
271e6c8300 is described below

commit 271e6c830028126635f9d4412d4511ff24198744
Author: Haonan <hh...@outlook.com>
AuthorDate: Tue Jan 31 09:06:44 2023 +0800

    Revert "[To rel/1.0][IOTDB-5426] Cannot trigger flush for sequence file when timed flush enabled (#8925)" (#8935)
    
    This reverts commit dd43fb29cb66afe42e95d889b0a47520d836492e.
---
 server/src/main/java/org/apache/iotdb/db/rescon/SystemInfo.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/src/main/java/org/apache/iotdb/db/rescon/SystemInfo.java b/server/src/main/java/org/apache/iotdb/db/rescon/SystemInfo.java
index 67736cb56f..fd0214b519 100644
--- a/server/src/main/java/org/apache/iotdb/db/rescon/SystemInfo.java
+++ b/server/src/main/java/org/apache/iotdb/db/rescon/SystemInfo.java
@@ -132,6 +132,7 @@ public class SystemInfo {
     if (reportedStorageGroupMemCostMap.containsKey(dataRegionInfo)) {
       delta = reportedStorageGroupMemCostMap.get(dataRegionInfo) - dataRegionInfo.getMemCost();
       this.totalStorageGroupMemCost -= delta;
+      dataRegionInfo.setLastReportedSize(dataRegionInfo.getMemCost());
       reportedStorageGroupMemCostMap.put(dataRegionInfo, dataRegionInfo.getMemCost());
     }