mariadb/storage/innobase/dict
Annamalai Gurusami 2f8bd757cd Bug #19471516 SERVER CRASHES WHEN EXECUTING ALTER TABLE ADD FOREIGN KEY
Problem:

We maintain two rb trees in each dict_table_t.  The foreign_rbt must be in
sync with foreign_list.  The referenced_rbt must be in sync with
referenced_list. There is one function which checks this consistency and it
failed, resulting in an assert failure.

The root cause of the problem was identified that the search order was 
lost in the referenced_rbt.  This is because while renaming the table,
we didn't not refresh this referenced_rbt.

Solution:

When a foreign key is renamed, we must delete and re-insert into both
foreign_rbt and referenced_rbt.  

rb#6412 approved by Jimmy.
2014-08-25 16:25:07 +02:00
..
dict0boot.c Fixing the bug 16919882 - WRONG FSF ADDRESS IN LICENSES HEADERS 2013-06-10 22:29:41 +02:00
dict0crea.c Bug #18806829 OPENING INNODB TABLES WITH MANY FOREIGN KEY REFERENCES IS 2014-06-10 09:35:50 +05:30
dict0dict.c Bug #19471516 SERVER CRASHES WHEN EXECUTING ALTER TABLE ADD FOREIGN KEY 2014-08-25 16:25:07 +02:00
dict0load.c Bug #18806829 OPENING INNODB TABLES WITH MANY FOREIGN KEY REFERENCES IS 2014-06-10 09:35:50 +05:30
dict0mem.c Bug #18806829 OPENING INNODB TABLES WITH MANY FOREIGN KEY REFERENCES IS 2014-06-10 09:35:50 +05:30