[Pkg-javascript-commits] [node-leveldown] 02/04: patch with @rescrv's workaround for leveldb 197

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:15:20 UTC 2014


This is an automated email from the git hooks/post-receive script.

andrewrk-guest pushed a commit to annotated tag v0.10.2
in repository node-leveldown.

commit b3a7793d48b6f2a1f7e19ce82e22ef531e59cb22
Author: Rod Vagg <rod at vagg.org>
Date:   Thu Nov 28 18:03:42 2013 +1100

    patch with @rescrv's workaround for leveldb 197
---
 deps/leveldb/leveldb-1.14.0/util/env_posix.cc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/deps/leveldb/leveldb-1.14.0/util/env_posix.cc b/deps/leveldb/leveldb-1.14.0/util/env_posix.cc
index 3e2925d..4b3ce8b 100644
--- a/deps/leveldb/leveldb-1.14.0/util/env_posix.cc
+++ b/deps/leveldb/leveldb-1.14.0/util/env_posix.cc
@@ -208,6 +208,11 @@ class PosixMmapFile : public WritableFile {
   bool UnmapCurrentRegion() {
     bool result = true;
     if (base_ != NULL) {
+#if defined(OS_MACOSX)
+      if (msync(base_, limit_ - base_, MS_SYNC) != 0) {
+        result = false;
+      }
+#endif
       if (last_sync_ < limit_) {
         // Defer syncing this data until next Sync() call, if any
         pending_sync_ = true;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git



More information about the Pkg-javascript-commits mailing list