fix bug:meta_file_alloc_size may be larger than meta_reserved_disk_size

This commit is contained in:
Revendell 2024-09-18 07:58:49 +00:00 committed by ob-robot
parent 498263ddca
commit 43ab7d650e

View File

@ -661,8 +661,12 @@ protected:
OB_INLINE int prefetch_macro_block(const MacroBlockId &macro_id)
{
int ret = OB_SUCCESS;
const ObStorageObjectType object_type = macro_id.storage_object_type();
if (!GCTX.is_shared_storage_mode()) {
// do nothing
} else if ((ObStorageObjectType::SHARED_MAJOR_DATA_MACRO != object_type) &&
(ObStorageObjectType::SHARED_MAJOR_META_MACRO != object_type)) {
// do nothing, only prefetch SHARED_MACRO type
} else if (OB_UNLIKELY(!macro_id.is_valid())) {
ret = OB_ERR_UNEXPECTED;
STORAGE_LOG(WARN, "get unexpected invalid macro id", K(ret), K(macro_id));