diff options
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/datastore/bufferstate.h | 5 | ||||
-rw-r--r-- | vespalib/src/vespa/vespalib/datastore/datastore.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/datastore/bufferstate.h b/vespalib/src/vespa/vespalib/datastore/bufferstate.h index ac6d1d54811..ca9c6dd39ba 100644 --- a/vespalib/src/vespa/vespalib/datastore/bufferstate.h +++ b/vespalib/src/vespa/vespalib/datastore/bufferstate.h @@ -143,7 +143,10 @@ public: size_t size() const { return _usedElems; } size_t capacity() const { return _allocElems; } size_t remaining() const { return _allocElems - _usedElems; } - void pushed_back(size_t numElems, size_t extraBytes = 0) { + void pushed_back(size_t numElems) { + pushed_back(numElems, 0); + } + void pushed_back(size_t numElems, size_t extraBytes) { _usedElems += numElems; _extraUsedBytes += extraBytes; } diff --git a/vespalib/src/vespa/vespalib/datastore/datastore.h b/vespalib/src/vespa/vespalib/datastore/datastore.h index 686b07766ac..c2cfca520af 100644 --- a/vespalib/src/vespa/vespalib/datastore/datastore.h +++ b/vespalib/src/vespa/vespalib/datastore/datastore.h @@ -54,7 +54,10 @@ public: /** * Hold element(s). */ - void holdElem(EntryRef ref, size_t numElems, size_t extraBytes = 0); + void holdElem(EntryRef ref, size_t numElems) { + holdElem(ref, numElems, 0); + } + void holdElem(EntryRef ref, size_t numElems, size_t extraBytes); /** * Trim elem hold list, freeing elements that no longer needs to be held. |