diff --git a/be/src/olap/tablet_meta.cpp b/be/src/olap/tablet_meta.cpp index e299d1a048c72d..299d3051a2302f 100644 --- a/be/src/olap/tablet_meta.cpp +++ b/be/src/olap/tablet_meta.cpp @@ -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) { diff --git a/be/src/olap/tablet_meta.h b/be/src/olap/tablet_meta.h index c8709941e590c6..c4166213d0c20d 100644 --- a/be/src/olap/tablet_meta.h +++ b/be/src/olap/tablet_meta.h @@ -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; };