mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 11:45:32 +02:00
portability fixes
mysql-test/r/mysqlbinlog.result: result fixed
This commit is contained in:
parent
10db96fe43
commit
a0a20345b9
6 changed files with 22 additions and 17 deletions
|
|
@ -80,6 +80,7 @@ class TC_LOG_DUMMY: public TC_LOG // use it to disable the logging
|
|||
void unlog(ulong cookie, my_xid xid) { }
|
||||
};
|
||||
|
||||
#ifdef HAVE_MMAP
|
||||
class TC_LOG_MMAP: public TC_LOG
|
||||
{
|
||||
private:
|
||||
|
|
@ -103,7 +104,8 @@ class TC_LOG_MMAP: public TC_LOG
|
|||
|
||||
char logname[FN_REFLEN];
|
||||
File fd;
|
||||
uint file_length, npages, inited;
|
||||
my_off_t file_length;
|
||||
uint npages, inited;
|
||||
uchar *data;
|
||||
struct st_page *pages, *syncing, *active, *pool, *pool_last;
|
||||
/*
|
||||
|
|
@ -128,6 +130,9 @@ class TC_LOG_MMAP: public TC_LOG
|
|||
int sync();
|
||||
int overflow();
|
||||
};
|
||||
#else
|
||||
#define TC_LOG_MMAP TC_LOG_DUMMY
|
||||
#endif
|
||||
|
||||
extern TC_LOG *tc_log;
|
||||
extern TC_LOG_MMAP tc_log_mmap;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue