summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2022-10-07 13:24:21 +0000
committerGeir Storli <geirst@yahooinc.com>2022-10-07 13:24:21 +0000
commita835f712450fa0665dbf125beab0a5671aa3bb87 (patch)
treeab90ef7fce62d60331467ff6bf05afcb78563fda /searchlib
parent7438b33d2447f5348e25c18160a592924130ee25 (diff)
Hide more details inside BufferState and reduce external API on BufferStats.
Using incDead() directly is no longer supported as marking elements as dead right before they are put on hold is unnecessary.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/memoryindex/feature_store.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/searchlib/src/vespa/searchlib/memoryindex/feature_store.cpp b/searchlib/src/vespa/searchlib/memoryindex/feature_store.cpp
index eb5f0ca843b..72f4a7ae579 100644
--- a/searchlib/src/vespa/searchlib/memoryindex/feature_store.cpp
+++ b/searchlib/src/vespa/searchlib/memoryindex/feature_store.cpp
@@ -68,8 +68,6 @@ FeatureStore::moveFeatures(EntryRef ref, uint64_t bitLen)
const uint8_t *src = getBits(ref);
uint64_t byteLen = (bitLen + 7) / 8;
EntryRef newRef = addFeatures(src, byteLen);
- // Mark old features as dead
- _store.incDead(ref, byteLen + Aligner::pad(byteLen));
return newRef;
}
@@ -117,7 +115,6 @@ FeatureStore::add_features_guard_bytes()
uint32_t pad = Aligner::pad(len);
auto result = _store.rawAllocator<uint8_t>(_typeId).alloc(len + pad);
memset(result.data, 0, len + pad);
- _store.incDead(result.ref, len + pad);
}
void