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

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


The following commit(s) were added to refs/heads/master by this push:
     new a3714981fd [Bug](schema change) Fix bug for vectorized schema change 
(#11652)
a3714981fd is described below

commit a3714981fd73a00036786430c83b14aa77ffd3c7
Author: Gabriel <gabrielleeb...@gmail.com>
AuthorDate: Wed Aug 10 21:42:51 2022 +0800

    [Bug](schema change) Fix bug for vectorized schema change (#11652)
---
 be/src/olap/schema_change.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/olap/schema_change.cpp b/be/src/olap/schema_change.cpp
index 7dfdc36117..aa455699b1 100644
--- a/be/src/olap/schema_change.cpp
+++ b/be/src/olap/schema_change.cpp
@@ -1757,6 +1757,7 @@ Status 
SchemaChangeHandler::_do_process_alter_tablet_v2(const TAlterTabletReqV2&
 
     // begin to find deltas to convert from base tablet to new tablet so that
     // obtain base tablet and new tablet's push lock and header write lock to 
prevent loading data
+    RowsetReaderContext reader_context;
     {
         std::lock_guard<std::mutex> 
base_tablet_lock(base_tablet->get_push_lock());
         std::lock_guard<std::mutex> 
new_tablet_lock(new_tablet->get_push_lock());
@@ -1772,7 +1773,6 @@ Status 
SchemaChangeHandler::_do_process_alter_tablet_v2(const TAlterTabletReqV2&
 
         // reader_context is stack variables, it's lifetime should keep the 
same
         // with rs_readers
-        RowsetReaderContext reader_context;
         reader_context.reader_type = READER_ALTER_TABLE;
         reader_context.tablet_schema = base_tablet_schema;
         reader_context.need_ordered_result = true;


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

Reply via email to