• unknown's avatar
    Applied innodb-5.1-ss1186 · 1c0ed4cd
    unknown authored
    Fixes bugs:
    - Bug #20877: InnoDB data dictionary memory footprint is too big
    - Bug #24741: existing cascade clauses disappear when adding foreign keys
    
    
    mysql-test/r/innodb.result:
      Applied innodb-5.1-ss1186
      
      Revision r1186:
      dict_load_foreign(): Use a local variable instead of the 10-bit field
      foreign->n_fields in order to preserve ON UPDATE CASCADE and
      ON DELETE CASCADE flags.  For some reason, gcc does not warn about
      shifting a 10-bit field to right by 24 bits.  (Bug #24741)
      
      This bug was introduced while reducing the memory footprint of the
      InnoDB data dictionary (Bug #20877).
      
      innodb.test, innodb.result: Add a test case.
    mysql-test/t/innodb.test:
      Applied innodb-5.1-ss1186
      
      Revision r1186:
      dict_load_foreign(): Use a local variable instead of the 10-bit field
      foreign->n_fields in order to preserve ON UPDATE CASCADE and
      ON DELETE CASCADE flags.  For some reason, gcc does not warn about
      shifting a 10-bit field to right by 24 bits.  (Bug #24741...
    1c0ed4cd
buf0flu.c 29.1 KB