Disable block scan when disable block cache

This commit is contained in:
DengzhiLiu
2023-04-07 08:14:51 +00:00
committed by ob-robot
parent 534c25f11f
commit 4b2dcdb52f

View File

@ -219,9 +219,9 @@ int ObTableAccessParam::init(
// disable blockscan if scan order is KeepOrder(for iterator iterator and table api) // disable blockscan if scan order is KeepOrder(for iterator iterator and table api)
// disable blockscan if use index skip scan as no large range to scan // disable blockscan if use index skip scan as no large range to scan
if (OB_UNLIKELY(ObQueryFlag::KeepOrder == scan_param.scan_flag_.scan_order_ || if (OB_UNLIKELY(ObQueryFlag::KeepOrder == scan_param.scan_flag_.scan_order_ ||
scan_param.use_index_skip_scan())) { scan_param.use_index_skip_scan() ||
!scan_param.scan_flag_.is_use_block_cache())) {
iter_param_.disable_blockscan(); iter_param_.disable_blockscan();
} }
if (scan_param.need_switch_param_) { if (scan_param.need_switch_param_) {
iter_param_.set_use_iter_pool_flag(); iter_param_.set_use_iter_pool_flag();