summaryrefslogtreecommitdiff
path: root/databases/mysql-q4m/files/patch-src__ha_queue.cc
blob: 92ceb4f921e84da46ec62f3e4b0d01fa6a95df6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- src/ha_queue.cc.orig	2014-02-06 14:51:01.000000000 +0900
+++ src/ha_queue.cc	2014-02-12 13:48:57.069544726 +0900
@@ -68,9 +68,7 @@
 #define Q4M_DELETE_MT_PWRITE 2
 #define Q4M_DELETE_SERIAL_PWRITE 3
 
-#if MYSQL_VERSION_ID < 50500
 #include "queue_config.h"
-#endif
 
 #if SIZEOF_OFF_T != 8
 #  error "support for 64-bit file offsets is mandatory"
@@ -763,7 +761,7 @@
     if (share->mmap_table(max(min((info->_header.end() + EXPAND_BY - 1)
 				  / EXPAND_BY * EXPAND_BY,
 				  mmap_max),
-			      EXPAND_BY))
+			      static_cast<ulonglong>EXPAND_BY))
 	!= 0) {
       log("mmap failed\n");
       goto ERR_AFTER_FILEOPEN;