Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-23000

Ensure we get a warning from THD::drop_temporary_table() in case of disk errors

    XMLWordPrintable

    Details

      Description

      The call stack for DROP TEMPORARY TABLE is:

      THD::drop_temporary_table()
      mysql_rm_table_no_locks()
      free_tmp_table_share()
      THD::free_tmp_table_share()
      THD::rm_temporary_table()
      ha_delete_table()

      The problem is that free_temp_table_share() is a void function and thus the caller doesn't know if ha_delete_table() failed or not.

      How to repeat:
      in gdb, put a breakpoint at: maria_delete_table()
      Execute in command tool:
      create temporary table t1 (a int) engine=aria;
      drop temporary table t1;

        Attachments

          Activity

            People

            Assignee:
            sanja Oleksandr Byelkin
            Reporter:
            monty Michael Widenius
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: