summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorunknown <ramil@ndbmaster.mysql.com>2005-11-06 08:29:03 +0100
committerunknown <ramil@ndbmaster.mysql.com>2005-11-06 08:29:03 +0100
commit89288fac18e6b32efa7155f54eb9ab6e75b72c53 (patch)
tree6f23a2bb49cbac7859890493620202b75435bc0e /sql/handler.cc
parentefe3703aaca1736455541e8be8d832a6a2f65e40 (diff)
downloadmariadb-git-89288fac18e6b32efa7155f54eb9ab6e75b72c53.tar.gz
WL #528: Faster free_tmp_table
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 1b2cae7f7f2..fd1be7638b0 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -2062,6 +2062,14 @@ int handler::rename_table(const char * from, const char * to)
return error;
}
+
+void handler::drop_table(const char *name)
+{
+ close();
+ delete_table(name);
+}
+
+
/*
Tell the storage engine that it is allowed to "disable transaction" in the
handler. It is a hint that ACID is not required - it is used in NDB for