aboutsummaryrefslogtreecommitdiffstats
path: root/searchcorespi
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-01-13 12:45:30 +0100
committerTor Egge <Tor.Egge@online.no>2022-01-13 12:45:30 +0100
commitb99dbf3d371da80f630ca123aee91cf953d3ff05 (patch)
tree667065eeae53d894018ae214911841034d648206 /searchcorespi
parent3e49223a0e6460c6357d810b358f38c1e71aa9bb (diff)
Update class comment.
Diffstat (limited to 'searchcorespi')
-rw-r--r--searchcorespi/src/vespa/searchcorespi/index/disk_indexes.h10
1 files changed, 9 insertions, 1 deletions
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<IndexDiskDir, IndexDiskDirState> _active;