diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-10-18 09:38:03 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-10-18 09:38:03 +0000 |
commit | 0d1471521aaf9b29ce7aa0330c8d2e00f1d512aa (patch) | |
tree | 357d0b0d3c5c94447e314ef43630bb682540c965 | |
parent | dc60ebc96f03f5ef05d493cc1a9aa4c88b1a6111 (diff) |
getBloatCount => getErasedCount
-rw-r--r-- | searchlib/src/tests/docstore/file_chunk/file_chunk_test.cpp | 2 | ||||
-rw-r--r-- | searchlib/src/vespa/searchlib/docstore/filechunk.cpp | 4 | ||||
-rw-r--r-- | searchlib/src/vespa/searchlib/docstore/filechunk.h | 2 |
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; |