• Aleksey Midenkov's avatar
    MDEV-22413 Server hangs upon UPDATE on a view reading from versioned partitioned table · dd9773b7
    Aleksey Midenkov authored
    UPDATE gets access to history records because versioning conditions
    are not set for VIEW. This leads to endless loop of inserting history
    records when clustered index is rebuilt and ha_rnd_next() returns
    newly inserted history record.
    
    Return back original behavior of failing on write-locked table in
    historical query.
    
    35b679b9 assumed that SELECT_LEX::lock_type influences anything, but
    actually at this point table is already locked. Original bug report
    was tempesta-tech/mariadb#102
    dd9773b7
select2.result 8.15 KB