summaryrefslogtreecommitdiffstats
path: root/memfilepersistence
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-05-08 21:13:33 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2017-05-09 07:16:23 +0000
commit4e3ebd92ff6be9b466c3d5fe7d3ff7ea83a14f9b (patch)
tree31bf3dad3f1b743f3378f9137d64529bd49a204b /memfilepersistence
parent754216f55f34a172bfdbf278eb52c0a1214035f6 (diff)
Deinline as compiler makes the best choices.
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
{