fix memtable_mgr_handle of inner_tablet is invalid while ls is offline

This commit is contained in:
obdev
2024-02-07 02:10:25 +00:00
committed by ob-robot
parent 1ae73f30f0
commit bbd30977cd

View File

@ -535,7 +535,8 @@ int ObTabletPointer::release_memtable_and_mds_table_for_ls_offline(const ObTable
{
int ret = OB_SUCCESS;
mds::MdsTableHandle mds_table;
if (OB_FAIL(protected_memtable_mgr_handle_.reset())) {
if (tablet_id.is_inner_tablet()) {
} else if (OB_FAIL(protected_memtable_mgr_handle_.reset())) {
LOG_WARN("failed to reset protected_memtable_mgr_handle", K(ret));
} else if (OB_FAIL(get_mds_table(tablet_id, mds_table, false/*not_exist_create*/))) {
if (OB_ENTRY_NOT_EXIST == ret) {