diff options
author | Håvard Pettersen <havardpe@yahooinc.com> | 2022-05-11 13:21:16 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@yahooinc.com> | 2022-05-11 14:14:53 +0000 |
commit | 530f4786b3ba73f2bb4a7e64132b7234e041d597 (patch) | |
tree | aaef5a32162c36b5f582a5f6c13de7884861839b /searchcore/src/tests/proton/documentmetastore/lid_allocator | |
parent | dfd60ee97e0531f1df053eaf6f506560eccbe89d (diff) |
make new bitvector when growing
Diffstat (limited to 'searchcore/src/tests/proton/documentmetastore/lid_allocator')
-rw-r--r-- | searchcore/src/tests/proton/documentmetastore/lid_allocator/lid_allocator_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/documentmetastore/lid_allocator/lid_allocator_test.cpp b/searchcore/src/tests/proton/documentmetastore/lid_allocator/lid_allocator_test.cpp index b0f1220c768..2d675e82db2 100644 --- a/searchcore/src/tests/proton/documentmetastore/lid_allocator/lid_allocator_test.cpp +++ b/searchcore/src/tests/proton/documentmetastore/lid_allocator/lid_allocator_test.cpp @@ -83,7 +83,7 @@ protected: std::vector<uint32_t> get_active_lids() { std::vector<uint32_t> result; - auto active_lids = _allocator.getActiveLids(); + const auto &active_lids = _allocator.getActiveLids(); uint32_t lid = active_lids.getNextTrueBit(1); while (lid < active_lids.size()) { if (active_lids.testBit(lid)) { |