diff options
Diffstat (limited to 'src/mongo/db/s/split_chunk.cpp')
-rw-r--r-- | src/mongo/db/s/split_chunk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/split_chunk.cpp b/src/mongo/db/s/split_chunk.cpp index 847f43d7111..b46885c3f1b 100644 --- a/src/mongo/db/s/split_chunk.cpp +++ b/src/mongo/db/s/split_chunk.cpp @@ -58,7 +58,7 @@ namespace { const ReadPreferenceSetting kPrimaryOnlyReadPreference{ReadPreference::PrimaryOnly}; bool checkIfSingleDoc(OperationContext* opCtx, - Collection* collection, + const Collection* collection, const IndexDescriptor* idx, const ChunkType* chunk) { KeyPattern kp(idx->keyPattern()); @@ -210,7 +210,7 @@ StatusWith<boost::optional<ChunkRange>> splitChunk(OperationContext* opCtx, AutoGetCollection autoColl(opCtx, nss, MODE_IS); - Collection* const collection = autoColl.getCollection(); + const Collection* const collection = autoColl.getCollection(); if (!collection) { LOGV2_WARNING( 23778, |