Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
csun5285 committed Nov 19, 2024
1 parent 8f32dec commit 45ac92a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion be/src/olap/tablet_schema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ void TabletColumn::append_sparse_column(TabletColumn column) {
_num_sparse_columns++;
}

void TabletSchema::append_index(TabletIndex index) {
void TabletSchema::append_index(TabletIndex&& index) {
_indexes.push_back(std::move(index));
}

Expand Down
2 changes: 1 addition & 1 deletion be/src/olap/tablet_schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class TabletSchema : public MetadataAdder<TabletSchema> {
}
void to_schema_pb(TabletSchemaPB* tablet_meta_pb) const;
void append_column(TabletColumn column, ColumnType col_type = ColumnType::NORMAL);
void append_index(TabletIndex index);
void append_index(TabletIndex&& index);
void update_index(const TabletColumn& column, const IndexType& index_type, TabletIndex&& index);
void remove_index(int64_t index_id);
void clear_index();
Expand Down

0 comments on commit 45ac92a

Please sign in to comment.