public void updateCostOfActiveMemTables(
      Map<Long, Long> memTableId2WalDiskUsage, double compressionRate) {
    for (Map.Entry<Long, Long> memTableWalUsage : memTableId2WalDiskUsage.entrySet()) {
      memTableId2Info.computeIfPresent(
          memTableWalUsage.getKey(),
          (k, v) -> {
            v.addWalDiskUsage((long) (memTableWalUsage.getValue() * compressionRate));
            return v;
          });
    }
  }
Update wal disk cost of active memTables.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/checkpoint/CheckpointManager.java