Skip to content

Commit

Permalink
Fix incorrect use of static. (#6709)
Browse files Browse the repository at this point in the history
close #6703
  • Loading branch information
JinheLin authored Feb 2, 2023
1 parent 8e01f8f commit a69dfbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dbms/src/Storages/DeltaMerge/Segment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(),
Expand All @@ -2435,7 +2435,7 @@ BitmapFilterPtr Segment::buildBitmapFilterStableOnly(const DMContext & dm_contex
/*read_packs*/ some_packs,
/*need_row_id*/ true);
stream = std::make_shared<DMRowKeyFilterBlockInputStream<true>>(stream, read_ranges, 0);
static ColumnDefines read_columns{
ColumnDefines read_columns{
getExtraHandleColumnDefine(is_common_handle),
};
stream = std::make_shared<DMVersionFilterBlockInputStream<DM_VERSION_FILTER_MODE_MVCC>>(
Expand Down

0 comments on commit a69dfbc

Please sign in to comment.