You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2020/12/08 04:00:53 UTC
[iotdb] branch master updated: Correct the data type of the memory
size to avoid loss of precision (#2211)
This is an automated email from the ASF dual-hosted git repository.
qiaojialin 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 cb9fe87 Correct the data type of the memory size to avoid loss of precision (#2211)
cb9fe87 is described below
commit cb9fe870e090aeda0a4483b2c1ff9867fd28e866
Author: Benedict Jin <as...@apache.org>
AuthorDate: Tue Dec 8 12:00:33 2020 +0800
Correct the data type of the memory size to avoid loss of precision (#2211)
---
tsfile/src/main/java/org/apache/iotdb/tsfile/write/TsFileWriter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tsfile/src/main/java/org/apache/iotdb/tsfile/write/TsFileWriter.java b/tsfile/src/main/java/org/apache/iotdb/tsfile/write/TsFileWriter.java
index 5346847..aa31866 100644
--- a/tsfile/src/main/java/org/apache/iotdb/tsfile/write/TsFileWriter.java
+++ b/tsfile/src/main/java/org/apache/iotdb/tsfile/write/TsFileWriter.java
@@ -273,7 +273,7 @@ public class TsFileWriter implements AutoCloseable {
* @return total memory size used
*/
private long calculateMemSizeForAllGroup() {
- int memTotalSize = 0;
+ long memTotalSize = 0;
for (IChunkGroupWriter group : groupWriters.values()) {
memTotalSize += group.updateMaxGroupMemSize();
}