summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/chunk_splitter.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-12-27 13:11:00 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-12-28 21:46:54 -0500
commit10e3ce2d905ca3afc1e5949da2daa3353740171a (patch)
tree0f532002ff244bac41b652daf6c2c1e783a3a25e /src/mongo/db/s/chunk_splitter.cpp
parent800f84351f3f4f07aadf84b08be68f6be44fcfca (diff)
downloadmongo-10e3ce2d905ca3afc1e5949da2daa3353740171a.tar.gz
SERVER-28992 Get rid of unused code from the write commands tests
Diffstat (limited to 'src/mongo/db/s/chunk_splitter.cpp')
-rw-r--r--src/mongo/db/s/chunk_splitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/chunk_splitter.cpp b/src/mongo/db/s/chunk_splitter.cpp
index 8384048dd18..8c4e0a859e8 100644
--- a/src/mongo/db/s/chunk_splitter.cpp
+++ b/src/mongo/db/s/chunk_splitter.cpp
@@ -285,7 +285,7 @@ void ChunkSplitter::_runAutosplit(const NamespaceString& nss,
routingInfo.cm());
const auto cm = routingInfo.cm();
- auto chunk = cm->findIntersectingChunkWithSimpleCollation(min);
+ const auto chunk = cm->findIntersectingChunkWithSimpleCollation(min);
// Stop if chunk's range differs from the range we were expecting to split.
if ((0 != chunk->getMin().woCompare(min)) || (0 != chunk->getMax().woCompare(max)) ||