Browse Source

Rename pageSize to pageSizeInBytes

pull/15058/head
Viacheslav Klimov 3 months ago
parent
commit
68036cdda2
Failed to extract signature
  1. 6
      common/dao-api/src/main/java/org/thingsboard/server/dao/nosql/TbResultSet.java

6
common/dao-api/src/main/java/org/thingsboard/server/dao/nosql/TbResultSet.java

@ -109,9 +109,9 @@ public class TbResultSet implements AsyncResultSet {
long maxResultSetSizeBytes,
AtomicLong accumulatedBytes) {
if (maxResultSetSizeBytes > 0) {
int pageSize = resultSet.getExecutionInfo().getResponseSizeInBytes();
if (pageSize > 0) {
accumulatedBytes.addAndGet(pageSize);
int pageSizeInBytes = resultSet.getExecutionInfo().getResponseSizeInBytes();
if (pageSizeInBytes > 0) {
accumulatedBytes.addAndGet(pageSizeInBytes);
}
if (accumulatedBytes.get() > maxResultSetSizeBytes) {
resultFuture.setException(new ResultSetSizeLimitExceededException(maxResultSetSizeBytes, accumulatedBytes.get()));

Loading…
Cancel
Save