diff options
author | monty@hundin.mysql.fi <> | 2001-11-22 03:39:42 +0200 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-11-22 03:39:42 +0200 |
commit | c79c6945eec373831d746d57960bcc69ae9d3ca1 (patch) | |
tree | e868ba7d33080a2f666294198ff5ee4d98e2a35d /myisam/mi_open.c | |
parent | 911ba4be24294741cd7f5ac7d6728a6dacbe1529 (diff) | |
download | mariadb-git-c79c6945eec373831d746d57960bcc69ae9d3ca1.tar.gz |
Fixed problem when repairing packed MyISAM files.
Diffstat (limited to 'myisam/mi_open.c')
-rw-r--r-- | myisam/mi_open.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/myisam/mi_open.c b/myisam/mi_open.c index 626d51d18b7..617b1cd8d90 100644 --- a/myisam/mi_open.c +++ b/myisam/mi_open.c @@ -30,7 +30,6 @@ #include "static.c" #endif -static void setup_functions(MYISAM_SHARE *info); static void setup_key_functions(MI_KEYDEF *keyinfo); #define get_next_element(to,pos,size) { memcpy((char*) to,pos,(size_t) size); \ pos+=size;} @@ -392,7 +391,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags) else if (share->options & HA_OPTION_PACK_RECORD) share->data_file_type = DYNAMIC_RECORD; my_afree((gptr) disk_cache); - setup_functions(share); + mi_setup_functions(share); #ifdef THREAD thr_lock_init(&share->lock); VOID(pthread_mutex_init(&share->intern_lock,MY_MUTEX_INIT_FAST)); @@ -566,7 +565,7 @@ ulonglong mi_safe_mul(ulonglong a, ulonglong b) /* Set up functions in structs */ -static void setup_functions(register MYISAM_SHARE *share) +void mi_setup_functions(register MYISAM_SHARE *share) { if (share->options & HA_OPTION_COMPRESS_RECORD) { |