summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-03-26 22:32:15 +0100
committerSergei Golubchik <sergii@pisem.net>2014-03-26 22:32:15 +0100
commit707dd6b9e937fea193c6981ce1b495c185310be4 (patch)
treef302a3b3dbb7efe01bffa615af8fe6d4048de96c /sql/table.h
parent97687f2888bc8c3ff009d3311dea5209e5cfc7de (diff)
downloadmariadb-git-707dd6b9e937fea193c6981ce1b495c185310be4.tar.gz
MDEV-5943 'show table status' does not immediately show tokudb tables
MDEV-5839 TokuDB tables not properly cleaned on DROP DATABASE TokuDB does not support discover_table_names() and writes no files in the database directory, so automatic filename-based discover_table_names() doesn't work either. So, it must force .frm file to disk in ::create()
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h
index dfcee9e75d6..cd1b934dcdd 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -979,6 +979,9 @@ struct TABLE_SHARE
*/
bool write_frm_image(const uchar *frm_image, size_t frm_length);
+ bool write_frm_image(void)
+ { return frm_image ? write_frm_image(frm_image->str, frm_image->length) : 0; }
+
/*
returns an frm image for this table.
the memory is allocated and must be freed later