From 68036cdda2cfe93f73fefa6074f416c58d08d953 Mon Sep 17 00:00:00 2001 From: Viacheslav Klimov Date: Thu, 19 Feb 2026 15:59:19 +0200 Subject: [PATCH] Rename pageSize to pageSizeInBytes --- .../java/org/thingsboard/server/dao/nosql/TbResultSet.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/dao-api/src/main/java/org/thingsboard/server/dao/nosql/TbResultSet.java b/common/dao-api/src/main/java/org/thingsboard/server/dao/nosql/TbResultSet.java index c2f12524b7..a7a4aa5fa8 100644 --- a/common/dao-api/src/main/java/org/thingsboard/server/dao/nosql/TbResultSet.java +++ b/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()));