diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-04-09 15:56:28 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-04-09 15:56:28 +0200 |
commit | 9ec326a8b1fd0d83d9baaaf64f021be10564409d (patch) | |
tree | 2d75f40a13edf1484d2a1555ef0f055d1d760b43 /sql/unireg.h | |
parent | 84b882172d6ff772148da808531f67baa4e89283 (diff) | |
download | mariadb-git-9ec326a8b1fd0d83d9baaaf64f021be10564409d.tar.gz |
cleanup frm creation:
* comments
* cosmetic changes, *(ptr+5) -> ptr[5]
* a couple of trivial functions -> inline
* remove unused argument from pack_header()
* create_frm() no longer creates frm file (the function used to prepare and
fill a memory buffer and call my_create at the end. Now it only prepares
a memory buffer). Renamed accordingly.
* don't call pack_screen twice, go for a smaller screen area in the first attempt
* remove useless calls to check_duplicate_warning()
* don't write unireg screens to .frm files
* remove make_new_entry(), it's basically dead code, always calculating
and writing into frm the same string value. replace the function call
with the constant string.
Diffstat (limited to 'sql/unireg.h')
-rw-r--r-- | sql/unireg.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/unireg.h b/sql/unireg.h index 46ff166a2b3..6972f90c1db 100644 --- a/sql/unireg.h +++ b/sql/unireg.h @@ -179,6 +179,9 @@ int rea_create_table(THD *thd, const char *path, uint key_count,KEY *key_info, handler *file); +#define FRM_HEADER_SIZE 64 +#define FRM_FORMINFO_SIZE 288 + static inline bool is_binary_frm_header(uchar *head) { return head[0] == 254 |