summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/docstore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-06-15 09:43:56 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-06-16 12:11:40 +0000
commitacb0b472c558fc4dd89407b7c26e260415729ca9 (patch)
treea337928708f94d406751a36b2e0d79ce8f96d6b2 /searchlib/src/tests/docstore
parentd782ba728837c36c20f2b8b6e1757b7305e7b57b (diff)
When computing size of visit cache count allocated bytes, not only used.
Diffstat (limited to 'searchlib/src/tests/docstore')
-rw-r--r--searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp b/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
index 1ca020bca86..2bf2a38b7e6 100644
--- a/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
+++ b/searchlib/src/tests/docstore/logdatastore/logdatastore_test.cpp
@@ -368,13 +368,13 @@ TEST("test visit cache does not cache empty ones and is able to access some back
IDataStore & datastore = store.getStore();
VisitCache visitCache(datastore, 100000, CompressionConfig::Type::LZ4);
- EXPECT_EQUAL(12u, visitCache.read({1}).byteSize());
+ EXPECT_EQUAL(12u, visitCache.read({1}).bytesAllocated());
EXPECT_TRUE(visitCache.read({1}).empty());
datastore.write(1,1, A7, 7);
- EXPECT_EQUAL(12u, visitCache.read({2}).byteSize());
+ EXPECT_EQUAL(12u, visitCache.read({2}).bytesAllocated());
CompressedBlobSet cbs = visitCache.read({1});
EXPECT_FALSE(cbs.empty());
- EXPECT_EQUAL(19u, cbs.byteSize());
+ EXPECT_EQUAL(19u, cbs.bytesAllocated());
BlobSet bs(cbs.getBlobSet());
EXPECT_EQUAL(7u, bs.get(1).size());
EXPECT_EQUAL(0, strncmp(A7, bs.get(1).c_str(), 7));