aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-10-18 09:38:03 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-10-18 09:38:03 +0000
commit0d1471521aaf9b29ce7aa0330c8d2e00f1d512aa (patch)
tree357d0b0d3c5c94447e314ef43630bb682540c965 /searchlib
parentdc60ebc96f03f5ef05d493cc1a9aa4c88b1a6111 (diff)
getBloatCount => getErasedCount
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/tests/docstore/file_chunk/file_chunk_test.cpp2
-rw-r--r--searchlib/src/vespa/searchlib/docstore/filechunk.cpp4
-rw-r--r--searchlib/src/vespa/searchlib/docstore/filechunk.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/searchlib/src/tests/docstore/file_chunk/file_chunk_test.cpp b/searchlib/src/tests/docstore/file_chunk/file_chunk_test.cpp
index 54d7770e271..8f506b7ca2d 100644
--- a/searchlib/src/tests/docstore/file_chunk/file_chunk_test.cpp
+++ b/searchlib/src/tests/docstore/file_chunk/file_chunk_test.cpp
@@ -202,7 +202,7 @@ assertUpdateLidMap(FixtureType &f)
f.assertBucketizer(expLids);
size_t entrySize = 10 + 8;
EXPECT_EQUAL(9 * entrySize, f.chunk.getAddedBytes());
- EXPECT_EQUAL(3u, f.chunk.getBloatCount());
+ EXPECT_EQUAL(3u, f.chunk.getErasedCount());
EXPECT_EQUAL(3 * entrySize, f.chunk.getErasedBytes());
}
diff --git a/searchlib/src/vespa/searchlib/docstore/filechunk.cpp b/searchlib/src/vespa/searchlib/docstore/filechunk.cpp
index 4470d2b489f..c57650bb16f 100644
--- a/searchlib/src/vespa/searchlib/docstore/filechunk.cpp
+++ b/searchlib/src/vespa/searchlib/docstore/filechunk.cpp
@@ -250,7 +250,7 @@ void
FileChunk::remove(uint32_t lid, uint32_t size)
{
(void) lid;
- _erasedCount.store(getBloatCount() + 1, std::memory_order_relaxed);
+ _erasedCount.store(getErasedCount() + 1, std::memory_order_relaxed);
_erasedBytes.store(getErasedBytes() + adjustSize(size), std::memory_order_relaxed);
}
@@ -451,7 +451,7 @@ FileChunk::verify(bool reportOnly) const
(void) reportOnly;
LOG(info,
"Verifying file '%s' with fileid '%u'. erased-count='%zu' and erased-bytes='%zu'. diskFootprint='%zu'",
- _name.c_str(), _fileId.getId(), getBloatCount(), getErasedBytes(), _diskFootprint.load(std::memory_order_relaxed));
+ _name.c_str(), _fileId.getId(), getErasedCount(), getErasedBytes(), _diskFootprint.load(std::memory_order_relaxed));
uint64_t lastSerial(0);
size_t chunkId(0);
bool errorInPrev(false);
diff --git a/searchlib/src/vespa/searchlib/docstore/filechunk.h b/searchlib/src/vespa/searchlib/docstore/filechunk.h
index f3a48b36e4a..1668d030141 100644
--- a/searchlib/src/vespa/searchlib/docstore/filechunk.h
+++ b/searchlib/src/vespa/searchlib/docstore/filechunk.h
@@ -155,7 +155,7 @@ public:
FileId getFileId() const { return _fileId; }
NameId getNameId() const { return _nameId; }
uint32_t getNumLids() const { return _numLids; }
- size_t getBloatCount() const { return _erasedCount.load(std::memory_order_relaxed); }
+ size_t getErasedCount() const { return _erasedCount.load(std::memory_order_relaxed); }
size_t getAddedBytes() const { return _addedBytes.load(std::memory_order_relaxed); }
size_t getErasedBytes() const { return _erasedBytes.load(std::memory_order_relaxed); }
uint64_t getLastPersistedSerialNum() const;