Skip to content

Commit

Permalink
[fix](be) fix asan be set_storage_medium core (#9986) (#9987)
Browse files Browse the repository at this point in the history
  • Loading branch information
SWJTU-ZhangLei authored Jun 9, 2022
1 parent dc87470 commit 9c1ba77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit 9c1ba77

Please sign in to comment.