aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@verizonmedia.com>2019-05-23 08:37:54 +0000
committerTor Brede Vekterli <vekterli@verizonmedia.com>2019-05-23 11:26:36 +0000
commit60b628f977102f905b67f23d765cf19e49fa21db (patch)
tree5e58abcb9cddb3385251a08a26d7b14e0f2167b1 /searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
parentbbc62a7d9f6a0ec4e0eaafff3213dfebc49898a8 (diff)
Move RcuVector and relevant support classes to vespalib
Having RCU support available across all our C++ modules open up new opportunities for optimizations. This changes the following: - `RcuVector` moved from `searchlib` to `vespalib` - `MemoryUsage` moved from `searchlib` to `vespalib` - Introduce a simplified, more generic `GrowStrategy` in `vespalib` used by the moved `RcuVector` which does not have any notion of documents. Existing searchlib `GrowStrategy` gets a simple function to convert to this generic strategy.
Diffstat (limited to 'searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp')
-rw-r--r--searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp b/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
index 436bfd97d8f..d636de46426 100644
--- a/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
+++ b/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
@@ -984,12 +984,12 @@ TEST_F("require that lid space can be compacted and shrunk", Fixture)
EXPECT_FALSE(f.store.canShrinkLidSpace());
f.compactLidSpace(2);
- MemoryUsage before = f.store.getMemoryUsage();
+ vespalib::MemoryUsage before = f.store.getMemoryUsage();
EXPECT_TRUE(f.store.canShrinkLidSpace());
EXPECT_EQUAL(8u, f.store.getEstimatedShrinkLidSpaceGain()); // one lid info entry
f.store.shrinkLidSpace();
- MemoryUsage after = f.store.getMemoryUsage();
+ vespalib::MemoryUsage after = f.store.getMemoryUsage();
EXPECT_LESS(after.usedBytes(), before.usedBytes());
EXPECT_EQUAL(8u, before.usedBytes() - after.usedBytes());
}