Skip to content

Commit 4ccc488

Browse files
committed
revert getRetainedSizeInBytes
1 parent 5bd0ed3 commit 4ccc488

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/cte/CteDataStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public CteDataStore(TableSchema tableSchema, List<Integer> columnIndex2TsBlockCo
5353

5454
public boolean addTsBlock(TsBlock tsBlock) {
5555
IoTDBConfig iotConfig = IoTDBDescriptor.getInstance().getConfig();
56-
long bytesSize = tsBlock.getSizeInBytes();
56+
long bytesSize = tsBlock.getRetainedSizeInBytes();
5757
int rows = tsBlock.getPositionCount();
5858
if (bytesSize + cachedBytes >= iotConfig.getCteBufferSize()
5959
|| rows + cachedRows >= iotConfig.getMaxRowsInCteBuffer()) {

0 commit comments

Comments
 (0)