• Michael Widenius's avatar
    Fixed MDEV-366: Assertion `share->reopen == 1' failed in maria_extra on DROP... · a1bc3936
    Michael Widenius authored
    Fixed MDEV-366: Assertion `share->reopen == 1' failed in maria_extra on DROP TABLE which is locked twice
    
    mysql-test/suite/maria/lock.result:
      Added test case
    mysql-test/suite/maria/lock.test:
      Added test case
    sql/sql_table.cc:
      One can't call HA_EXTRA_FORCE_REOPEN on something that may be opened twice.
      It's safe to remove the call in this case as we will call HA_EXTRA_PREPARE_FOR_DROP for the table anyway.
      (One nice side effect is that drop is a bit faster as we are not flushing the cache to disk before the drop anymore)
    a1bc3936
lock.result 758 Bytes