From b99dbf3d371da80f630ca123aee91cf953d3ff05 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Thu, 13 Jan 2022 12:45:30 +0100 Subject: Update class comment. --- searchcorespi/src/vespa/searchcorespi/index/disk_indexes.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'searchcorespi') diff --git a/searchcorespi/src/vespa/searchcorespi/index/disk_indexes.h b/searchcorespi/src/vespa/searchcorespi/index/disk_indexes.h index 844e1687ffb..842c1814faf 100644 --- a/searchcorespi/src/vespa/searchcorespi/index/disk_indexes.h +++ b/searchcorespi/src/vespa/searchcorespi/index/disk_indexes.h @@ -14,8 +14,16 @@ class IndexDiskDirState; class IndexDiskLayout; /** - * Class used to keep track of the set of active disk indexes in an index maintainer. + * Class used to keep track of the set of disk indexes in an index maintainer. * The index directories are used as identifiers. + * + * DiskIndexCleaner will remove old disk indexes not marked active, + * i.e. old disk indexes used by old index collections are not removed. + * + * At start of fusion, an entry for fusion output index is added, to allow for + * tracking of transient disk use while fusion is ongoing. If fusion fails then + * the entry is removed, otherwise the entry is marked active as a side effect + * of setting up a new index collection. */ class DiskIndexes { std::map _active; -- cgit v1.2.3