summaryrefslogtreecommitdiff
path: root/src/mongo/db/rebuild_indexes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/rebuild_indexes.h')
-rw-r--r--src/mongo/db/rebuild_indexes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/rebuild_indexes.h b/src/mongo/db/rebuild_indexes.h
index 1654e359882..20ef0e7aff6 100644
--- a/src/mongo/db/rebuild_indexes.h
+++ b/src/mongo/db/rebuild_indexes.h
@@ -61,7 +61,7 @@ StatusWith<IndexNameObjs> getIndexNameObjs(OperationContext* opCtx,
*/
enum class RepairData { kYes, kNo };
Status rebuildIndexesOnCollection(OperationContext* opCtx,
- Collection* collection,
+ const Collection* collection,
const std::vector<BSONObj>& indexSpecs,
RepairData repair);
@@ -70,7 +70,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,
- Collection* collection,
+ const Collection* collection,
const std::vector<BSONObj>& indexSpecs);
} // namespace mongo