• Sergei Petrunia's avatar
    MDEV-31194: Server crash or assertion failure with join_cache_level=4 · 2594da7a
    Sergei Petrunia authored
    The problem, introduced in patch for MDEV-26301:
    
    When check_join_cache_usage() decides not to use join buffer, it must
    adjust the access method accordingly. For BNL-H joins this means switching
    from pseudo-"ref access"(with index=MAX_KEY) to some other access method.
    
    Failing to do this will cause assertions down the line when code that is
    not aware of BNL-H will try to initialize index use for ref access with
    index=MAX_KEY.
    
    The fix is to follow the regular code path to disable the join buffer for
    the join_tab ("goto no_join_cache") instead of just returning from
    check_join_cache_usage().
    2594da7a
derived_split_innodb.result 24.3 KB