• Marko Mäkelä's avatar
    MDEV-10682 Race condition between ANALYZE and STATS_AUTO_RECALC · c557e954
    Marko Mäkelä authored
    ha_innobase::info_low(): While collecting statistics for
    ANALYZE TABLE, ensure that dict_stats_process_entry_from_recalc_pool()
    is not executing on the same table.
    
    We observed result differences for the test innodb.innodb_stats because
    dict_stats_empty_index() was being invoked by the background statistics
    calculation while ha_innobase::analyze() was executing
    dict_stats_analyze_index_level().
    c557e954
ha_innodb.cc 644 KB