[BUG.FIX] fix no reset tablet.

This commit is contained in:
Tyshawn
2023-03-28 06:41:30 +00:00
committed by ob-robot
parent 9155acd3ae
commit 4b8394bdee

View File

@ -553,8 +553,9 @@ int ObMetaPointerMap<Key, T>::get_meta_obj_with_external_memory(
} else {
bool need_free_obj = false;
T *t = nullptr;
t = new (buf) T();
do {
t = new (buf) T();
t->reset();
if (OB_FAIL(load_meta_obj(key, t_ptr, allocator, disk_addr, t, false/*using_obj_pool*/))) {
STORAGE_LOG(WARN, "load obj from disk fail", K(ret), K(key), KPC(t_ptr), K(lbt()));
} else {