• Monty's avatar
    Fix of query cache bug in Aria · 01e455db
    Monty authored
    MDEV-5817 query cache bug (returning inconsistent/old result
    set) with aria table parallel inserts, row format = page
    
    The problem is that for transactional aria tables
    (row_type=PAGE and transactional=1), maria_lock_database()
    didn't flush the state or the query cache.
    Not flushing the state is correct for transactional tables as
    this is done by checkpoint, but not flushing the query cache
    was wrong and could cause concurrent SELECT queries to not
    be deleted from the cache.
    
    Fixed by introducing a flush of the query cache as part of commit, if the table has changed.
    t for transactional aria tables (row_type=PAGE and transactional=1), maria_lock_table() didn't flush their state or the query cache.
    01e455db
ha_maria.cc 129 KB