summaryrefslogtreecommitdiffstats
path: root/searchlib/src
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-10-19 21:48:43 +0200
committerGitHub <noreply@github.com>2022-10-19 21:48:43 +0200
commit7e817e1847ef61e66623cbe5bc52787e5986f452 (patch)
tree030edb905c9ad4c99b51f0654b66c14af8c89f24 /searchlib/src
parentfe8b8d1f1434aa84736432ba93f3c4543e21a885 (diff)
parent3640ef403f2d904e2563b14b1fa04e7631a4f245 (diff)
Merge pull request #24509 from vespa-engine/balder/use-32M-as-mmap-limit
Use 32M as mmap limit during decompression of documents
Diffstat (limited to 'searchlib/src')
-rw-r--r--searchlib/src/vespa/searchlib/docstore/value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/docstore/value.cpp b/searchlib/src/vespa/searchlib/docstore/value.cpp
index 6c2173393b9..bd4d75d944a 100644
--- a/searchlib/src/vespa/searchlib/docstore/value.cpp
+++ b/searchlib/src/vespa/searchlib/docstore/value.cpp
@@ -77,7 +77,7 @@ Value::set(vespalib::DataBuffer &&buf, ssize_t len, const CompressionConfig &com
Value::Result
Value::decompressed() const {
- vespalib::DataBuffer uncompressed(_buf.get(), (size_t) 0);
+ vespalib::DataBuffer uncompressed(0, 1, Alloc::alloc(0, 16 * vespalib::alloc::MemoryAllocator::HUGEPAGE_SIZE));
decompress(getCompression(), getUncompressedSize(), vespalib::ConstBufferRef(*this, size()), uncompressed, true);
uint64_t crc = XXH64(uncompressed.getData(), uncompressed.getDataLen(), 0);
return std::make_pair<vespalib::DataBuffer, bool>(std::move(uncompressed), crc == _uncompressedCrc);