mi_open.c:

  Can only use mi_dynmap_file() if HAVE_MMAP is defined
parent b7f0778e
...@@ -506,6 +506,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags) ...@@ -506,6 +506,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
share->data_file_type = DYNAMIC_RECORD; share->data_file_type = DYNAMIC_RECORD;
my_afree((gptr) disk_cache); my_afree((gptr) disk_cache);
mi_setup_functions(share); mi_setup_functions(share);
#if HAVE_MMAP
if (open_flags & HA_OPEN_MMAP) if (open_flags & HA_OPEN_MMAP)
{ {
info.s= share; info.s= share;
...@@ -522,6 +523,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags) ...@@ -522,6 +523,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
share->file_write= mi_mmap_pwrite; share->file_write= mi_mmap_pwrite;
} }
} }
#endif /* HAVE_MMAP */
share->is_log_table= FALSE; share->is_log_table= FALSE;
#ifdef THREAD #ifdef THREAD
thr_lock_init(&share->lock); thr_lock_init(&share->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment