提交 c063023b 编写于 作者: O obdev 提交者: ob-robot

[CP] Fix data_buf mem leak when index block io failed

上级 18b7723e
......@@ -98,6 +98,7 @@ int ObMicroBlockDataHandle::get_index_block_data(
micro_block_id.macro_id_ = macro_block_id_;
micro_block_id.offset_ = micro_info_.offset_;
micro_block_id.size_ = micro_info_.size_;
is_loaded_index_block_ = true;
if (OB_FAIL(ObStorageCacheSuite::get_instance().get_index_block_cache().load_block(
micro_block_id,
des_meta_,
......@@ -109,7 +110,6 @@ int ObMicroBlockDataHandle::get_index_block_data(
try_release_loaded_index_block();
} else {
index_block = loaded_index_block_data_;
is_loaded_index_block_ = true;
}
}
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册