Skip to content

Commit

Permalink
[fix](inverted index) Fix the incorrect type usage in the test_storag…
Browse files Browse the repository at this point in the history
…e_page_size_fault case.
  • Loading branch information
zzzxl1993 committed Nov 17, 2024
1 parent 13ced20 commit 732d8fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions be/src/olap/rowset/segment_v2/segment_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ Status SegmentWriter::_create_column_writer(uint32_t cid, const TabletColumn& co
opts.data_page_size = storage_page_size;
}
DBUG_EXECUTE_IF("VerticalSegmentWriter._create_column_writer.storage_page_size", {
auto table_id = DebugPoints::instance()->get_debug_param_or_default<int32_t>(
auto table_id = DebugPoints::instance()->get_debug_param_or_default<int64_t>(
"VerticalSegmentWriter._create_column_writer.storage_page_size", "table_id",
INT_MIN);
auto target_data_page_size = DebugPoints::instance()->get_debug_param_or_default<int32_t>(
auto target_data_page_size = DebugPoints::instance()->get_debug_param_or_default<int64_t>(
"VerticalSegmentWriter._create_column_writer.storage_page_size",
"storage_page_size", INT_MIN);
if (table_id == INT_MIN || target_data_page_size == INT_MIN) {
Expand Down
4 changes: 2 additions & 2 deletions be/src/olap/rowset/segment_v2/vertical_segment_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ Status VerticalSegmentWriter::_create_column_writer(uint32_t cid, const TabletCo
opts.data_page_size = storage_page_size;
}
DBUG_EXECUTE_IF("VerticalSegmentWriter._create_column_writer.storage_page_size", {
auto table_id = DebugPoints::instance()->get_debug_param_or_default<int32_t>(
auto table_id = DebugPoints::instance()->get_debug_param_or_default<int64_t>(
"VerticalSegmentWriter._create_column_writer.storage_page_size", "table_id",
INT_MIN);
auto target_data_page_size = DebugPoints::instance()->get_debug_param_or_default<int32_t>(
auto target_data_page_size = DebugPoints::instance()->get_debug_param_or_default<int64_t>(
"VerticalSegmentWriter._create_column_writer.storage_page_size",
"storage_page_size", INT_MIN);
if (table_id == INT_MIN || target_data_page_size == INT_MIN) {
Expand Down

0 comments on commit 732d8fc

Please sign in to comment.