[fix](tablet meta) stale rowset is not loaded while BE start (#30077)
This commit is contained in:
@ -561,6 +561,13 @@ void TabletMeta::init_from_pb(const TabletMetaPB& tablet_meta_pb) {
|
||||
_rs_metas.push_back(std::move(rs_meta));
|
||||
}
|
||||
|
||||
// init _stale_rs_metas
|
||||
for (auto& it : tablet_meta_pb.stale_rs_metas()) {
|
||||
RowsetMetaSharedPtr rs_meta(new RowsetMeta());
|
||||
rs_meta->init_from_pb(it);
|
||||
_stale_rs_metas.push_back(std::move(rs_meta));
|
||||
}
|
||||
|
||||
// For mow table, delete bitmap of stale rowsets has not been persisted.
|
||||
// When be restart, query should not read the stale rowset, otherwise duplicate keys
|
||||
// will be read out. Therefore, we don't add them to _stale_rs_meta for mow table.
|
||||
|
||||
Reference in New Issue
Block a user