• unknown's avatar
    Bug#17368 General log and slow query log don't work · 89c8b298
    unknown authored
     - Port ha_tina.cc to run on windows 
    
    
    include/my_sys.h:
      Add define for MAP_PRIVATE, to be used in my_mmap to decide what kind of map to open.
    mysys/my_mmap.c:
      Remove unused flProtect
      Look at "prot" argument when deciding if map should be read or write.
    storage/csv/ha_tina.cc:
      Remove "include <sys/mman.h>", use the defines and functions from mysys
      Add cast to byte* when calling 'my_write'
      Add cast to char* when calling 'buffer.set'
      munmap the file before setting it's size, my_chsize will fail if file is mapped.
    storage/csv/ha_tina.h:
      Remove "typedef" since no name is defined and "tina_set" is used in the code
    89c8b298
my_sys.h 35.3 KB