summaryrefslogtreecommitdiff
path: root/sql/unireg.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-04-09 15:34:58 +0200
committerSergei Golubchik <sergii@pisem.net>2013-04-09 15:34:58 +0200
commitb9f42f4b7a08d4f6d46ecaba3595b38af0a6525d (patch)
tree117b229dcf0240c1b17d2492bd8d7a0ec55badac /sql/unireg.h
parent474e5ecd1f4e39e57f7677e5d9dc2bd44da4768f (diff)
downloadmariadb-git-b9f42f4b7a08d4f6d46ecaba3595b38af0a6525d.tar.gz
rename open_binary_frm() to TABLE_SHARE::init_from_binary_frm_image()
simplify open_table_def()
Diffstat (limited to 'sql/unireg.h')
-rw-r--r--sql/unireg.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/unireg.h b/sql/unireg.h
index f4e88b0d8d7..702637b0736 100644
--- a/sql/unireg.h
+++ b/sql/unireg.h
@@ -178,4 +178,13 @@ int rea_create_table(THD *thd, const char *path,
List<Create_field> &create_field,
uint key_count,KEY *key_info,
handler *file);
+
+static inline bool is_binary_frm_header(uchar *head)
+{
+ return head[0] == 254
+ && head[1] == 1
+ && head[2] >= FRM_VER
+ && head[2] <= FRM_VER+4;
+}
+
#endif