From c4ae054bce51109bffc415d24c6009bcc461e31a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 28 Jul 2015 15:20:43 +0100 Subject: [PATCH 1/2] Updated for ITS#8181, #8190, #8200 --- libraries/liblmdb/CHANGES | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/liblmdb/CHANGES b/libraries/liblmdb/CHANGES index b35ca61d76..65c5b3e633 100644 --- a/libraries/liblmdb/CHANGES +++ b/libraries/liblmdb/CHANGES @@ -1,6 +1,9 @@ LMDB 0.9 Change Log LMDB 0.9.16 Release Engineering + Fix cursor EOF bug (ITS#8190) + Fix handling of subDB records (ITS#8181) + Fix mdb_midl_shrink() usage (ITS#8200) LMDB 0.9.15 Release (2015/06/19) Fix txn init (ITS#7961,#7987) From d139771b43e0612fbf2e0f4c61301596f47c1edd Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 29 Jul 2015 20:01:34 +0100 Subject: [PATCH 2/2] ITS#8192 fix reference to EINTR on WIN32 from ITS#8106 --- libraries/liblmdb/mdb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index adc20f893b..b5d59bcdb1 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -3648,7 +3648,6 @@ mdb_env_write_meta(MDB_txn *txn) /* Write to the SYNC fd */ mfd = env->me_flags & (MDB_NOSYNC|MDB_NOMETASYNC) ? env->me_fd : env->me_mfd; -retry_write: #ifdef _WIN32 { memset(&ov, 0, sizeof(ov)); @@ -3657,12 +3656,15 @@ retry_write: rc = -1; } #else +retry_write: rc = pwrite(mfd, ptr, len, off); #endif if (rc != len) { rc = rc < 0 ? ErrCode() : EIO; +#ifndef _WIN32 if (rc == EINTR) goto retry_write; +#endif DPUTS("write failed, disk error?"); /* On a failure, the pagecache still contains the new data. * Write some old data back, to prevent it from being used.