summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2022-10-12 16:05:19 +0000
committerGeir Storli <geirst@yahooinc.com>2022-10-12 16:21:01 +0000
commit9f930c426fd9804bdba41b3114b1ba9cd0a955db (patch)
treebe8e0f469757ac537833d90dcbf533ed23225fd1 /searchcore
parent8273895eb7fdc6d681b3f24096be129248f3d5c3 (diff)
Rename removeOldGenerations() -> reclaim_memory().
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.cpp8
-rw-r--r--searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.cpp b/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.cpp
index 0a3d0192d81..ead9f142508 100644
--- a/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.cpp
+++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.cpp
@@ -250,11 +250,11 @@ DocumentMetaStore::before_inc_generation(generation_t current_gen)
}
void
-DocumentMetaStore::removeOldGenerations(generation_t firstUsed)
+DocumentMetaStore::reclaim_memory(generation_t oldest_used_gen)
{
- _gidToLidMap.getAllocator().reclaim_memory(firstUsed);
- _lidAlloc.reclaim_memory(firstUsed);
- getGenerationHolder().reclaim(firstUsed);
+ _gidToLidMap.getAllocator().reclaim_memory(oldest_used_gen);
+ _lidAlloc.reclaim_memory(oldest_used_gen);
+ getGenerationHolder().reclaim(oldest_used_gen);
}
std::unique_ptr<search::AttributeSaver>
diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.h b/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.h
index b6f907c26d5..2dc85f07cf4 100644
--- a/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.h
+++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/documentmetastore.h
@@ -94,7 +94,7 @@ private:
// Implements AttributeVector
void before_inc_generation(generation_t current_gen) override;
- void removeOldGenerations(generation_t firstUsed) override;
+ void reclaim_memory(generation_t oldest_used_gen) override;
std::unique_ptr<search::AttributeSaver> onInitSave(vespalib::stringref fileName) override;
bool onLoad(vespalib::Executor *executor) override;