diff options
Diffstat (limited to 'src/mongo/db/rebuild_indexes.h')
-rw-r--r-- | src/mongo/db/rebuild_indexes.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/rebuild_indexes.h b/src/mongo/db/rebuild_indexes.h index 20ef0e7aff6..ea6c0cc2a94 100644 --- a/src/mongo/db/rebuild_indexes.h +++ b/src/mongo/db/rebuild_indexes.h @@ -37,6 +37,7 @@ namespace mongo { class Collection; +class CollectionPtr; class OperationContext; typedef std::pair<std::vector<std::string>, std::vector<BSONObj>> IndexNameObjs; @@ -61,7 +62,7 @@ StatusWith<IndexNameObjs> getIndexNameObjs(OperationContext* opCtx, */ enum class RepairData { kYes, kNo }; Status rebuildIndexesOnCollection(OperationContext* opCtx, - const Collection* collection, + const CollectionPtr& collection, const std::vector<BSONObj>& indexSpecs, RepairData repair); @@ -70,7 +71,7 @@ Status rebuildIndexesOnCollection(OperationContext* opCtx, * One example usage is when a 'dropIndex' command is rolled back. The dropped index must be remade. */ Status rebuildIndexesOnCollection(OperationContext* opCtx, - const Collection* collection, + const CollectionPtr& collection, const std::vector<BSONObj>& indexSpecs); } // namespace mongo |