• Sergei Petrunia's avatar
    MDEV-33502: part#4: Dont make redundant extra(HA_EXTRA_[NO]_KEYREAD) calls · 31463f11
    Sergei Petrunia authored
    In most cases, ha_partition forwards calls to extra() to all
    locked_partitions. It doesn't make sense to forward some calls for
    partitions that were pruned away.
    This patch introduces ha_partition::loop_read_partitions and makes
    these calls use it:
    
    - ha_partition::extra_opt(HA_EXTRA_KEYREAD)
    - ha_partition::extra(HA_EXTRA_KEYREAD)
    - ha_partition::extra(HA_EXTRA_NO_KEYREAD)
    
    Reviewed-by: Monty
    31463f11
ha_partition.cc 369 KB