• Jan Lindström's avatar
    MDEV-19660: wsrep_rec_get_foreign_key() is dereferencing a stale pointer to a... · b1054277
    Jan Lindström authored
    MDEV-19660: wsrep_rec_get_foreign_key() is dereferencing a stale pointer to a page that was previously latched
    
    In row_ins_foreign_check_on_constraint(), clustered index record is being passed to wsrep_append_foreign_key() after releasing the latch. If a record has been changed by other thread in the meantime then it could lead to a crash when
    wsrep_rec_get_foreign_key () tries to access the record.
    
    row_ins_foreign_check_on_constraint
    	Use cascade->pcur->old_rec instead of clust_rec.
    
    row_ins_check_foreign_constraint
    	Add missing error printout.
    b1054277
row0ins.cc 93.8 KB