You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by lt...@apache.org on 2020/12/22 16:57:18 UTC

[iotdb] branch fix_MaxDeduplicatedPathNum_cal_bug created (now 5119aa7)

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

lta pushed a change to branch fix_MaxDeduplicatedPathNum_cal_bug
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 5119aa7  fix a bug of cal MaxDeduplicatedPathNum

This branch includes the following new commits:

     new 5119aa7  fix a bug of cal MaxDeduplicatedPathNum

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: fix a bug of cal MaxDeduplicatedPathNum

Posted by lt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

lta pushed a commit to branch fix_MaxDeduplicatedPathNum_cal_bug
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 5119aa7b27c8d64c0fe6cd8dcfc76f8b1b89f013
Author: lta <li...@163.com>
AuthorDate: Wed Dec 23 00:56:42 2020 +0800

    fix a bug of cal MaxDeduplicatedPathNum
---
 .../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());
   }