You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by zh...@apache.org on 2019/10/23 15:06:43 UTC
[incubator-doris] branch master updated: Fix schema change core
dump because of null stats (#2049)
This is an automated email from the ASF dual-hosted git repository.
zhaoc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new e3c39a1 Fix schema change core dump because of null stats (#2049)
e3c39a1 is described below
commit e3c39a192c7eae14f5761632d114cd46d914027e
Author: kangpinghuang <ka...@126.com>
AuthorDate: Wed Oct 23 23:06:29 2019 +0800
Fix schema change core dump because of null stats (#2049)
---
be/src/olap/schema_change.cpp | 2 ++
be/src/olap/schema_change.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/be/src/olap/schema_change.cpp b/be/src/olap/schema_change.cpp
index d05e24e..1185cc5 100644
--- a/be/src/olap/schema_change.cpp
+++ b/be/src/olap/schema_change.cpp
@@ -1312,6 +1312,7 @@ OLAPStatus SchemaChangeHandler::_do_process_alter_tablet_v2(const TAlterTabletRe
_reader_context.return_columns = &return_columns;
// for schema change, seek_columns is the same to return_columns
_reader_context.seek_columns = &return_columns;
+ _reader_context.stats = &_stats;
for (auto& rs_reader : rs_readers) {
rs_reader->init(&_reader_context);
@@ -1428,6 +1429,7 @@ OLAPStatus SchemaChangeHandler::schema_version_convert(
_reader_context.delete_handler = &delete_handler;
_reader_context.return_columns = &return_columns;
_reader_context.seek_columns = &return_columns;
+ _reader_context.stats = &_stats;
RowsetReaderSharedPtr rowset_reader;
RETURN_NOT_OK((*base_rowset)->create_reader(&rowset_reader));
diff --git a/be/src/olap/schema_change.h b/be/src/olap/schema_change.h
index c74510d..f31f7fb 100644
--- a/be/src/olap/schema_change.h
+++ b/be/src/olap/schema_change.h
@@ -267,6 +267,8 @@ private:
private:
RowsetReaderContext _reader_context;
+ OlapReaderStatistics _stats;
+
DISALLOW_COPY_AND_ASSIGN(SchemaChangeHandler);
};
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org