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

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


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 0234976ab7d [refactor](meta scan) Remove RPC from execute threads 
(#33378)
0234976ab7d is described below

commit 0234976ab7da62bc817c23a0007aae467ad66d83
Author: Gabriel <gabrielleeb...@gmail.com>
AuthorDate: Mon Apr 8 20:27:17 2024 +0800

    [refactor](meta scan) Remove RPC from execute threads (#33378)
---
 be/src/vec/exec/scan/vmeta_scanner.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/be/src/vec/exec/scan/vmeta_scanner.cpp 
b/be/src/vec/exec/scan/vmeta_scanner.cpp
index e31846c21be..2680b2679d8 100644
--- a/be/src/vec/exec/scan/vmeta_scanner.cpp
+++ b/be/src/vec/exec/scan/vmeta_scanner.cpp
@@ -77,6 +77,7 @@ VMetaScanner::VMetaScanner(RuntimeState* state, 
pipeline::ScanLocalStateBase* lo
 Status VMetaScanner::open(RuntimeState* state) {
     VLOG_CRITICAL << "VMetaScanner::open";
     RETURN_IF_ERROR(VScanner::open(state));
+    RETURN_IF_ERROR(_fetch_metadata(_scan_range.meta_scan_range));
     return Status::OK();
 }
 
@@ -94,8 +95,6 @@ Status VMetaScanner::prepare(RuntimeState* state, const 
VExprContextSPtrs& conju
         // from a NULL value.
         return Status::InternalError("Logical error, VMetaScanner do not allow 
ColumnNullable");
     }
-
-    RETURN_IF_ERROR(_fetch_metadata(_scan_range.meta_scan_range));
     return Status::OK();
 }
 


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

Reply via email to