[BUG.FIX] fix resize datafile when it comes to failure.

This commit is contained in:
Tyshawn 2022-11-08 15:05:34 +00:00 committed by wangzelin.wzl
parent 3ddfbc83a8
commit a41c97afed
2 changed files with 4 additions and 1 deletions

View File

@ -567,7 +567,7 @@ int ObMetaPointerMap<Key, T>::get_meta_obj_with_external_memory(
if (REACH_TIME_INTERVAL(1000000)) {
STORAGE_LOG(WARN, "disk address change", K(ret), K(disk_addr), KPC(t_ptr));
}
} else if (t->deserialize_post_work()) {
} else if (OB_FAIL(t->deserialize_post_work())) {
STORAGE_LOG(WARN, "fail to deserialize post work", K(ret), KP(t));
} else if (OB_FAIL(t->assign_pointer_handle(ptr_hdl))) {
STORAGE_LOG(WARN, "fail to assign pointer handle", K(ret), KP(t));

View File

@ -329,6 +329,9 @@ int ObStorageLoggerManager::get_using_disk_space(int64_t &using_space) const
using_space += tenant_using_size;
}
}
if (OB_TENANT_NOT_IN_SERVER == ret) {
ret = OB_SUCCESS;
}
}
}
return ret;