diff options
Diffstat (limited to 'src/mongo/db/catalog/index_catalog.h')
-rw-r--r-- | src/mongo/db/catalog/index_catalog.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/index_catalog.h b/src/mongo/db/catalog/index_catalog.h index 625a7bc56cc..e02733eaace 100644 --- a/src/mongo/db/catalog/index_catalog.h +++ b/src/mongo/db/catalog/index_catalog.h @@ -217,6 +217,17 @@ public: // Must be called before used. virtual Status init(OperationContext* opCtx, Collection* collection) = 0; + /** + * Must be called before used. + * + * When initializing an index that exists in 'preexistingIndexes', the IndexCatalogEntry will be + * taken from there instead of initializing a new IndexCatalogEntry. + */ + virtual Status initFromExisting(OperationContext* opCtx, + Collection* collection, + const IndexCatalogEntryContainer& preexistingIndexes, + boost::optional<Timestamp> readTimestamp) = 0; + // ---- accessors ----- virtual bool haveAnyIndexes() const = 0; |