• Michael Widenius's avatar
    Fixed MDEV-4970: Wrong result with Aria table populated with disabled keys · 3d67c68a
    Michael Widenius authored
    Problem was that ALTER TABLE DISABLE KEYS incremented create_trid for the table,
    which made the new index entries invisible until the global trid catched up.
    
    Fixed by only updating create_trid if we are rewriting all rows and indexes.
    
    
    mysql-test/suite/maria/alter.result:
      Added test case
    mysql-test/suite/maria/alter.test:
      Added test case
    storage/maria/ha_maria.cc:
      Only updating create_trid if we are doing a full repair (and thus rewriting all rows and indexes).
    storage/maria/trnman.c:
      More DBUG_PRINT
    3d67c68a
alter.test 887 Bytes