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:01:57 UTC

[iotdb] branch master updated: Revert "[IOTDB-5426] Cannot trigger flush for sequence file when timed flush enabled (#8921)" (#8933)

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

haonan 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 f21261bdba Revert "[IOTDB-5426] Cannot trigger flush for sequence file when timed flush enabled (#8921)" (#8933)
f21261bdba is described below

commit f21261bdba1ff4292329246faf44d217e2459fe0
Author: Haonan <hh...@outlook.com>
AuthorDate: Tue Jan 31 09:01:50 2023 +0800

    Revert "[IOTDB-5426] Cannot trigger flush for sequence file when timed flush enabled (#8921)" (#8933)
    
    This reverts commit 24b99cb9a3489755560e194b69845fadb9952c4b.
---
 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());
     }