• Michael Widenius's avatar
    When one does a drop table, the indexes are not flushed to disk before drop... · d77e3cde
    Michael Widenius authored
    When one does a drop table, the indexes are not flushed to disk before drop anymore (with MyISAM/Maria)
    myisam-recover options changed from OFF to 'DEFAULT' to get less change of data loss when using MyISAM.
    (The disadvantage is that changed MyISAM tables will be checked at access time; Use --myisam-recover=OFF for old behavior)
    Don't call extra(HA_EXTRA_FORCE_REOPEN) in ALTER TABLE if table is locked as this will mark table as crashed!
    Added assert to detect if we accidently would use MyISAM versioning in MySQL
    
    include/my_base.h:
      Mark NOT_USED as USED, as we now use this as a flag to not call extra()
    mysql-test/mysql-test-run.pl:
      Don't write all options when there is something wrong with the arguments
    mysql-test/r/sp-destruct.result:
      Add missing flush of mysql.proc (as the test copied live tables)
    mysql-test/r/variables.result:
      myisam-recover options changed to 'default'
    mysql-test/r/view.result:
      Don't show create time in result
    mysql-test/suite/maria/t/maria-recovery2-master.opt:
      Don't run test with myisam-recover (as this produces extra warnings during simulated death)
    mysql-test/t/sp-destruct.test:
      Add missing flush of mysql.proc (as the test copied live tables)
    mysql-test/t/view.test:
      Don't show create time in result
    sql/lock.cc:
      Added marker if table was deleted to argument list
    sql/mysql_priv.h:
      Added marker if table was deleted to argument list
    sql/mysqld.cc:
      myisam-recover options changed from OFF to 'DEFAULT' to get less change of data loss when using MyISAM
      Allow one to specify OFF as argument to myisam-recover (was default before but one couldn't specify it)
    sql/sql_base.cc:
      Mark if table is going to be deleted
    sql/sql_delete.cc:
      Mark if table is going to be deleted
    sql/sql_table.cc:
      Mark if table is going to be deleted
      Don't call extra(HA_EXTRA_FORCE_REOPEN) in ALTER TABLE if table is locked as this will mark table as crashed!
    sql/table.cc:
      Signal to handler if table is getting deleted as part of getting droped from table cache.
    sql/table.h:
      Added marker if table is going to be deleted.
    storage/maria/ha_maria.cc:
      Don't search for transaction handler if file is not transactional or outside of transaction
      (Fixed possible core dump)
    storage/maria/ma_blockrec.c:
      Don't write changed information if table is going to be deleted.
    storage/maria/ma_close.c:
      Don't write changed information if table is going to be deleted.
    storage/maria/ma_extra.c:
      Mark tables that are deleted as crased, to ensure good behavior on restart if we suddenly crash.
    storage/maria/ma_locking.c:
      Cleanup
    storage/maria/ma_recovery.c:
      We need trnman to be inited during redo phase (to be able to open tables checked with maria_chk)
    storage/maria/maria_def.h:
      Added marker if table is going to be deleted.
    storage/myisam/mi_close.c:
      Don't write changed information if table is going to be deleted.
    storage/myisam/mi_extra.c:
      Mark tables that are deleted as crased, to ensure good behavior on restart if we suddenly crash.
    storage/myisam/mi_open.c:
      Added assert to detect if we accidently would use MyISAM versioning in MySQL
    storage/myisam/myisamdef.h:
      Added marker if table is going to be deleted.
    d77e3cde
ha_maria.cc 109 KB