aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcorespi/index/iindexmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/vespa/searchcorespi/index/iindexmanager.h')
-rw-r--r--searchcore/src/vespa/searchcorespi/index/iindexmanager.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcorespi/index/iindexmanager.h b/searchcore/src/vespa/searchcorespi/index/iindexmanager.h
index a11ae12f26d..b6bbe416562 100644
--- a/searchcore/src/vespa/searchcorespi/index/iindexmanager.h
+++ b/searchcore/src/vespa/searchcorespi/index/iindexmanager.h
@@ -1,4 +1,4 @@
-// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "indexsearchable.h"
@@ -200,6 +200,15 @@ public:
* @param maxFlushed The max number of flushed indexes before fusion is urgent.
*/
virtual void setMaxFlushed(uint32_t maxFlushed) = 0;
+
+ /**
+ * Checks if we have a pending urgent flush due to a recent
+ * schema change (e.g. regeneration of interleaved features in
+ * disk indexes).
+ *
+ * @return whether an urgent flush is pending
+ */
+ virtual bool has_pending_urgent_flush() const = 0;
};
} // namespace searchcorespi