ports/databases/mariadb100-server/files/patch-storage_connect_filamap.h
John Marino d2bcf058dc Add new ports databases/mariadb100-server and -client (version 10.0)
PR:		193539
Submitted by:	spil.oss (gmail)

MariaDB is a database server that offers drop-in replacement functionality
for MySQL. MariaDB is built by some of the original authors of MySQL, with
assistance from the broader community of Free and open source software
developers. In addition to the core functionality of MySQL, MariaDB offers
a rich set of feature enhancements including alternate storage engines,
server optimizations, and patches.
2014-11-04 08:21:55 +00:00

27 lines
1 KiB
C++

--- storage/connect/filamap.h.orig 2014-09-25 00:29:47.000000000 +0200
+++ storage/connect/filamap.h 2014-09-27 11:44:39.000000000 +0200
@@ -47,7 +47,7 @@
virtual void Rewind(void);
protected:
- virtual int InitDelete(PGLOBAL g, int fpos, int spos);
+ virtual int InitDelete(PGLOBAL g, uintptr_t fpos, uintptr_t spos);
// Members
char *Memory; // Pointer on file mapping view.
@@ -104,13 +104,13 @@
virtual int MaxBlkSize(PGLOBAL g, int s)
{return TXTFAM::MaxBlkSize(g, s);}
virtual bool SetPos(PGLOBAL g, int recpos);
- virtual int GetNextPos(void) {return (int)Fpos + Nrec;}
+ virtual int GetNextPos(void) {return (uintptr_t)Fpos + Nrec;}
virtual bool DeferReading(void) {return false;}
virtual int ReadBuffer(PGLOBAL g);
virtual int WriteBuffer(PGLOBAL g);
protected:
- virtual int InitDelete(PGLOBAL g, int fpos, int spos);
+ virtual int InitDelete(PGLOBAL g, uintptr_t fpos, uintptr_t spos);
// No additional members
}; // end of class MPXFAM