This is an automated email from the ASF dual-hosted git repository.

haonan 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 bb40b81  fix a bug of cal MaxDeduplicatedPathNum (#2310)
bb40b81 is described below

commit bb40b817cc3c86648a06a73c64a8c4b48fabb01b
Author: Tianan Li <[email protected]>
AuthorDate: Wed Dec 23 10:13:32 2020 +0800

    fix a bug of cal MaxDeduplicatedPathNum (#2310)
---
 .../java/org/apache/iotdb/db/query/control/QueryResourceManager.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/server/src/main/java/org/apache/iotdb/db/query/control/QueryResourceManager.java
 
b/server/src/main/java/org/apache/iotdb/db/query/control/QueryResourceManager.java
index c493914..fe37e5e 100644
--- 
a/server/src/main/java/org/apache/iotdb/db/query/control/QueryResourceManager.java
+++ 
b/server/src/main/java/org/apache/iotdb/db/query/control/QueryResourceManager.java
@@ -97,7 +97,7 @@ public class QueryResourceManager {
   }
 
   public int getMaxDeduplicatedPathNum(int fetchSize) {
-    return Math.min((int) ((totalFreeMemoryForRead.get() / fetchSize) / 
POINT_ESTIMATED_SIZE),
+    return (int) Math.min(((totalFreeMemoryForRead.get() / fetchSize) / 
POINT_ESTIMATED_SIZE),
         CONFIG.getMaxQueryDeduplicatedPathNum());
   }
 

Reply via email to