You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/09/26 00:53:44 UTC

[doris] branch branch-1.1-lts updated: [bugfix](scanner) olap scanner compute is wrong (#12857)

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

yiguolei pushed a commit to branch branch-1.1-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.1-lts by this push:
     new 23704f936f [bugfix](scanner) olap scanner compute is wrong (#12857)
23704f936f is described below

commit 23704f936f0f22f212a76576b595ed74bd13f754
Author: yiguolei <67...@qq.com>
AuthorDate: Sat Sep 24 09:59:59 2022 +0800

    [bugfix](scanner) olap scanner compute is wrong (#12857)
    
    Co-authored-by: yiguolei <yi...@gmail.com>
---
 be/src/exec/olap_scan_node.cpp      | 2 +-
 be/src/vec/exec/volap_scan_node.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/exec/olap_scan_node.cpp b/be/src/exec/olap_scan_node.cpp
index 28053ff5ef..7cf508f2f3 100644
--- a/be/src/exec/olap_scan_node.cpp
+++ b/be/src/exec/olap_scan_node.cpp
@@ -796,7 +796,7 @@ Status OlapScanNode::start_scan_thread(RuntimeState* state) {
         int size_based_scanners_per_tablet = 1;
         if (config::doris_scan_range_max_mb > 0) {
             size_based_scanners_per_tablet = std::max(
-                    1, (int)tablet->tablet_footprint() / config::doris_scan_range_max_mb << 20);
+                    1, (int)(tablet->tablet_footprint() / (config::doris_scan_range_max_mb << 20)));
         }
         int ranges_per_scanner =
                 std::max(1, (int)ranges->size() /
diff --git a/be/src/vec/exec/volap_scan_node.cpp b/be/src/vec/exec/volap_scan_node.cpp
index 999c7716f1..2a912a4e3e 100644
--- a/be/src/vec/exec/volap_scan_node.cpp
+++ b/be/src/vec/exec/volap_scan_node.cpp
@@ -375,7 +375,7 @@ Status VOlapScanNode::start_scan_thread(RuntimeState* state) {
 
         if (config::doris_scan_range_max_mb > 0) {
             size_based_scanners_per_tablet = std::max(
-                    1, (int)tablet->tablet_footprint() / config::doris_scan_range_max_mb << 20);
+                    1, (int)(tablet->tablet_footprint() / (config::doris_scan_range_max_mb << 20)));
         }
 
         int ranges_per_scanner =


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org