aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2018-08-09 11:36:11 -0400
committerMarcoFalke <[email protected]>2018-08-09 11:31:45 -0400
commitfa14fa742d3347c5b627f3375770536c648192fe (patch)
tree7f2e72371c846824c80110da842f506f546e7ea8 /src
parentMerge #13916: qa: wait_for_verack by default (diff)
parentSquashed 'src/leveldb/' changes from 64052c76c5..524b7e36a8 (diff)
downloaddiscoin-fa14fa742d3347c5b627f3375770536c648192fe.tar.xz
discoin-fa14fa742d3347c5b627f3375770536c648192fe.zip
Merge leveldb subtree
Merge commit 'ec749b1bcdf2483b642fb51d635800e272c68ba6' into HEAD
Diffstat (limited to 'src')
-rw-r--r--src/leveldb/util/env_posix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leveldb/util/env_posix.cc b/src/leveldb/util/env_posix.cc
index 4676bc224..f77918313 100644
--- a/src/leveldb/util/env_posix.cc
+++ b/src/leveldb/util/env_posix.cc
@@ -585,8 +585,8 @@ static int MaxMmaps() {
if (mmap_limit >= 0) {
return mmap_limit;
}
- // Up to 1000 mmaps for 64-bit binaries; none for smaller pointer sizes.
- mmap_limit = sizeof(void*) >= 8 ? 1000 : 0;
+ // Up to 4096 mmaps for 64-bit binaries; none for smaller pointer sizes.
+ mmap_limit = sizeof(void*) >= 8 ? 4096 : 0;
return mmap_limit;
}