diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-07-26 14:24:29 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-08-05 10:32:09 -0400 |
commit | e3c13d1bdafd2517248fffdb56f1f421e3e792ea (patch) | |
tree | a433e1a8ab5e1e54a2155a6bcf7022a87f230ae4 /src/mongo/s/chunk.cpp | |
parent | 0a8a7fa7da1a8bbe31b9eb8a0ca8be6927d7139c (diff) | |
download | mongo-e3c13d1bdafd2517248fffdb56f1f421e3e792ea.tar.gz |
SERVER-24439 Make mongos commands over sharded collections inherit the collection default collation
Diffstat (limited to 'src/mongo/s/chunk.cpp')
-rw-r--r-- | src/mongo/s/chunk.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/chunk.cpp b/src/mongo/s/chunk.cpp index 84313d24c95..6ef0048f826 100644 --- a/src/mongo/s/chunk.cpp +++ b/src/mongo/s/chunk.cpp @@ -382,8 +382,8 @@ bool Chunk::splitIfShould(OperationContext* txn, long dataWritten) { // We need to use the latest chunk manager (after the split) in order to have the most // up-to-date view of the chunk we are about to move auto scopedCM = uassertStatusOK(ScopedChunkManager::getExisting(txn, nss)); - auto suggestedChunk = - scopedCM.cm()->findIntersectingChunk(txn, suggestedMigrateChunk->getMin()); + auto suggestedChunk = scopedCM.cm()->findIntersectingChunkWithSimpleCollation( + txn, suggestedMigrateChunk->getMin()); ChunkType chunkToMove; chunkToMove.setNS(nss.ns()); |