summaryrefslogtreecommitdiff
path: root/storage/csv/ha_tina.h
diff options
context:
space:
mode:
authorunknown <msvensson@shellback.(none)>2006-04-04 09:59:19 +0200
committerunknown <msvensson@shellback.(none)>2006-04-04 09:59:19 +0200
commit89c8b298f0ae707a186b988dd079488f812adae0 (patch)
tree13f040c0d73f44e2fceb698666f340d1cd52aee1 /storage/csv/ha_tina.h
parentf9dd31ca8ec96c2c315a9f8011d4f1ed5b73b0a4 (diff)
downloadmariadb-git-89c8b298f0ae707a186b988dd079488f812adae0.tar.gz
Bug#17368 General log and slow query log don't work
- 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
Diffstat (limited to 'storage/csv/ha_tina.h')
-rw-r--r--storage/csv/ha_tina.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/csv/ha_tina.h b/storage/csv/ha_tina.h
index 572d05cb779..dc743cf6514 100644
--- a/storage/csv/ha_tina.h
+++ b/storage/csv/ha_tina.h
@@ -41,9 +41,9 @@ typedef struct st_tina_share {
THR_LOCK lock;
} TINA_SHARE;
-typedef struct tina_set {
- off_t begin;
- off_t end;
+struct tina_set {
+ off_t begin;
+ off_t end;
};
class ha_tina: public handler