diff options
Diffstat (limited to 'src/mongo/db/catalog/index_build_block.h')
-rw-r--r-- | src/mongo/db/catalog/index_build_block.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/index_build_block.h b/src/mongo/db/catalog/index_build_block.h index 07d404c52c3..95f384cf170 100644 --- a/src/mongo/db/catalog/index_build_block.h +++ b/src/mongo/db/catalog/index_build_block.h @@ -70,6 +70,13 @@ public: Status init(OperationContext* opCtx, Collection* collection); /** + * Makes sure that an entry for the index was created at startup in the IndexCatalog. + */ + void initForResume(OperationContext* opCtx, + Collection* collection, + const IndexSorterInfo& resumeInfo); + + /** * Marks the state of the index as 'ready' and commits the index to disk. * * Must be called from within a `WriteUnitOfWork` @@ -107,6 +114,8 @@ public: } private: + void _completeInit(OperationContext* opCtx, Collection* collection); + IndexCatalog* const _indexCatalog; const NamespaceString _nss; |