From a69dfbceb42cbe222a8df16a02361e5ee8ca04d4 Mon Sep 17 00:00:00 2001 From: jinhelin Date: Thu, 2 Feb 2023 12:05:55 +0800 Subject: [PATCH] Fix incorrect use of static. (#6709) close pingcap/tiflash#6703 --- dbms/src/Storages/DeltaMerge/Segment.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbms/src/Storages/DeltaMerge/Segment.cpp b/dbms/src/Storages/DeltaMerge/Segment.cpp index 1a5fac19bfe..e1d2e87013a 100644 --- a/dbms/src/Storages/DeltaMerge/Segment.cpp +++ b/dbms/src/Storages/DeltaMerge/Segment.cpp @@ -2279,7 +2279,7 @@ BitmapFilterPtr Segment::buildBitmapFilterNormal(const DMContext & dm_context, size_t expected_block_size) { Stopwatch sw_total; - static ColumnDefines columns_to_read{ + ColumnDefines columns_to_read{ getExtraHandleColumnDefine(is_common_handle), }; auto stream = getInputStreamModeNormal( @@ -2418,7 +2418,7 @@ BitmapFilterPtr Segment::buildBitmapFilterStableOnly(const DMContext & dm_contex { return bitmap_filter; } - static ColumnDefines columns_to_read{ + ColumnDefines columns_to_read{ getExtraHandleColumnDefine(is_common_handle), getVersionColumnDefine(), getTagColumnDefine(), @@ -2435,7 +2435,7 @@ BitmapFilterPtr Segment::buildBitmapFilterStableOnly(const DMContext & dm_contex /*read_packs*/ some_packs, /*need_row_id*/ true); stream = std::make_shared>(stream, read_ranges, 0); - static ColumnDefines read_columns{ + ColumnDefines read_columns{ getExtraHandleColumnDefine(is_common_handle), }; stream = std::make_shared>(