From a835f712450fa0665dbf125beab0a5671aa3bb87 Mon Sep 17 00:00:00 2001 From: Geir Storli Date: Fri, 7 Oct 2022 13:24:21 +0000 Subject: 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. --- searchlib/src/vespa/searchlib/memoryindex/feature_store.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'searchlib') 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(_typeId).alloc(len + pad); memset(result.data, 0, len + pad); - _store.incDead(result.ref, len + pad); } void -- cgit v1.2.3