summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2002-02-14 11:30:14 +0200
committerunknown <heikki@hundin.mysql.fi>2002-02-14 11:30:14 +0200
commitce81db2e0df94c6dbc27bb804cf453456cf3a67d (patch)
treefe5e8709935b9c4bfd907269c3f1f6f219b00805 /innobase
parent199e17e577163252c0ba5ecec4f4a655e621ce00 (diff)
downloadmariadb-git-ce81db2e0df94c6dbc27bb804cf453456cf3a67d.tar.gz
row0mysql.c:
Add a warning to drop database wait if there are still open handles on a table innobase/row/row0mysql.c: Add a warning to drop database wait if there are still open handles on a table
Diffstat (limited to 'innobase')
-rw-r--r--innobase/row/row0mysql.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/innobase/row/row0mysql.c b/innobase/row/row0mysql.c
index 8357ebe7b96..c4a844b3fa9 100644
--- a/innobase/row/row0mysql.c
+++ b/innobase/row/row0mysql.c
@@ -1847,7 +1847,15 @@ loop:
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;
}