Commit 4eb0f28e authored by heikki@hundin.mysql.fi's avatar heikki@hundin.mysql.fi
Browse files

row0mysql.c:

  Add a warning to drop database wait if there are still open handles on a table
parent 57ef5c71
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -1847,7 +1847,15 @@ row_drop_database_for_mysql(
		if (table->n_mysql_handles_opened > 0) {
		        mutex_exit(&(dict_sys->mutex));

		        os_thread_sleep(100000);
			ut_print_timestamp(stderr);
			fprintf(stderr,
		"  InnoDB: Warning: MySQL is trying to drop database %s\n"
	    	"InnoDB: though there are still open handles to table %s.\n",
				name, table_name);

		        os_thread_sleep(1000000);

		        mem_free(table_name);

		        goto loop;
		}