• Mattias Jonsson's avatar
    Bug#54747: Deadlock between REORGANIZE PARTITION and SELECT is not detected · 0c2b883d
    Mattias Jonsson authored
    The ALTER PARTITION and SELECT seemed to be deadlocked
    when having innodb_thread_concurrency = 1.
    
    Problem was that there was unreleased latches
    in the ALTER PARTITION thread which was needed
    by the SELECT thread to be able to continue.
    
    Solution was to release the latches by commit 
    before requesting upgrade to exclusive MDL lock.
    
    Updated according to reviewers comments (3).
    0c2b883d
sql_partition.cc 264 KB