summaryrefslogtreecommitdiffstats
path: root/memfilepersistence
diff options
context:
space:
mode:
Diffstat (limited to 'memfilepersistence')
-rw-r--r--memfilepersistence/src/vespa/memfilepersistence/mapper/simplememfileiobuffer.cpp2
-rw-r--r--memfilepersistence/src/vespa/memfilepersistence/mapper/simplememfileiobuffer.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/memfilepersistence/src/vespa/memfilepersistence/mapper/simplememfileiobuffer.cpp b/memfilepersistence/src/vespa/memfilepersistence/mapper/simplememfileiobuffer.cpp
index 305a71397b1..1f5344d466e 100644
--- a/memfilepersistence/src/vespa/memfilepersistence/mapper/simplememfileiobuffer.cpp
+++ b/memfilepersistence/src/vespa/memfilepersistence/mapper/simplememfileiobuffer.cpp
@@ -20,6 +20,8 @@ uint32_t calculateChecksum(const void* pos, uint32_t size) {
}
+constexpr size_t SimpleMemFileIOBuffer::WORKING_BUFFER_SIZE;
+
SimpleMemFileIOBuffer::SimpleMemFileIOBuffer(
VersionSerializer& reader,
vespalib::LazyFile::UP file,
diff --git a/memfilepersistence/src/vespa/memfilepersistence/mapper/simplememfileiobuffer.h b/memfilepersistence/src/vespa/memfilepersistence/mapper/simplememfileiobuffer.h
index 18e99646ce9..5210d30874f 100644
--- a/memfilepersistence/src/vespa/memfilepersistence/mapper/simplememfileiobuffer.h
+++ b/memfilepersistence/src/vespa/memfilepersistence/mapper/simplememfileiobuffer.h
@@ -63,7 +63,7 @@ public:
* allocated buffer. For all other cases, we'll attempt to squeeze as many
* documents as possible into the same (shared) buffer.
*/
- static const size_t WORKING_BUFFER_SIZE = 16*1024; // TODO(vekterli): make configurable
+ static constexpr size_t WORKING_BUFFER_SIZE = 16*1024; // TODO(vekterli): make configurable
class SharedBuffer
{