Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](be) fix asan be set_storage_medium core (#9986) #9987

Merged
merged 1 commit into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion be/src/olap/tablet_meta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ TabletMeta::TabletMeta(const TabletMeta& b)
_stale_rs_metas(b._stale_rs_metas),
_del_pred_array(b._del_pred_array),
_in_restore_mode(b._in_restore_mode),
_preferred_rowset_type(b._preferred_rowset_type) {}
_preferred_rowset_type(b._preferred_rowset_type),
_remote_storage_name(b._remote_storage_name),
_storage_medium(b._storage_medium) {};

void TabletMeta::_init_column_from_tcolumn(uint32_t unique_id, const TColumn& tcolumn,
ColumnPB* column) {
Expand Down
3 changes: 1 addition & 2 deletions be/src/olap/tablet_meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ class TabletMeta {
bool _in_restore_mode = false;
RowsetTypePB _preferred_rowset_type = BETA_ROWSET;
std::string _remote_storage_name;
StorageMediumPB _storage_medium;

StorageMediumPB _storage_medium = StorageMediumPB::HDD;
std::shared_mutex _meta_lock;
};

Expand Down