Merge branch 'mdb.master' into vl32

vl32
Howard Chu 10 years ago
commit af80e8d161
  1. 2
      libraries/liblmdb/CHANGES
  2. 2
      libraries/liblmdb/lmdb.h
  3. 3
      libraries/liblmdb/mdb.c

@ -1,6 +1,6 @@
LMDB 0.9 Change Log LMDB 0.9 Change Log
LMDB 0.9.14 Release (2014/09/15) LMDB 0.9.14 Release (2014/09/20)
Fix to support 64K page size (ITS#7713) Fix to support 64K page size (ITS#7713)
Fix to persist decreased as well as increased mapsizes (ITS#7789) Fix to persist decreased as well as increased mapsizes (ITS#7789)
Fix cursor bug when deleting last node of a DUPSORT key Fix cursor bug when deleting last node of a DUPSORT key

@ -194,7 +194,7 @@ typedef int mdb_filehandle_t;
MDB_VERINT(MDB_VERSION_MAJOR,MDB_VERSION_MINOR,MDB_VERSION_PATCH) MDB_VERINT(MDB_VERSION_MAJOR,MDB_VERSION_MINOR,MDB_VERSION_PATCH)
/** The release date of this library version */ /** The release date of this library version */
#define MDB_VERSION_DATE "September 15, 2014" #define MDB_VERSION_DATE "September 20, 2014"
/** A stringifier for the version info */ /** A stringifier for the version info */
#define MDB_VERSTR(a,b,c,d) "LMDB " #a "." #b "." #c ": (" d ")" #define MDB_VERSTR(a,b,c,d) "LMDB " #a "." #b "." #c ": (" d ")"

@ -90,7 +90,7 @@ extern int cacheflush(char *addr, int nbytes, int cache);
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
#if defined(__sun) #if defined(__sun) || defined(ANDROID)
/* Most platforms have posix_memalign, older may only have memalign */ /* Most platforms have posix_memalign, older may only have memalign */
#define HAVE_MEMALIGN 1 #define HAVE_MEMALIGN 1
#include <malloc.h> #include <malloc.h>
@ -2647,6 +2647,7 @@ mdb_txn_begin(MDB_env *env, MDB_txn *parent, unsigned int flags, MDB_txn **ret)
if (!(flags & MDB_RDONLY)) { if (!(flags & MDB_RDONLY)) {
if (!parent) { if (!parent) {
txn = env->me_txn0; txn = env->me_txn0;
txn->mt_flags = 0;
goto ok; goto ok;
} }
size += env->me_maxdbs * sizeof(MDB_cursor *); size += env->me_maxdbs * sizeof(MDB_cursor *);

Loading…
Cancel
Save