From decb935acf29d72c447d4179dc03b149fe613ba3 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 18 Dec 2018 11:06:10 +0000 Subject: Return information if a buffer is held. Use std::make_unique. Minor unifying cleanup. --- .../src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'searchcore') diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp index 63d815ffe82..de1a09ab6d3 100644 --- a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp +++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp @@ -56,8 +56,7 @@ LidAllocator::peekFreeLid(DocId lidLimit) } void -LidAllocator::ensureSpace(uint32_t newSize, - uint32_t newCapacity) +LidAllocator::ensureSpace(uint32_t newSize, uint32_t newCapacity) { _freeLids.resizeVector(newSize, newCapacity); _usedLids.resizeVector(newSize, newCapacity); -- cgit v1.2.3