summaryrefslogtreecommitdiff
path: root/src/mongo/s/chunk_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/chunk_manager.cpp')
-rw-r--r--src/mongo/s/chunk_manager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/chunk_manager.cpp b/src/mongo/s/chunk_manager.cpp
index be9ee5a25eb..75f2cc7c11c 100644
--- a/src/mongo/s/chunk_manager.cpp
+++ b/src/mongo/s/chunk_manager.cpp
@@ -243,13 +243,13 @@ bool ChunkManager::_load(OperationContext* txn,
<< oldChunkMap.size() << " chunks";
}
+ // Get the diff query required
+ const auto diffQuery = CMConfigDiffTracker::createConfigDiffQuery(_nss, _version);
+
// Attach a diff tracker for the versioned chunk data
CMConfigDiffTracker differ(_nss.ns(), &chunkMap, &_version, shardVersions, this);
// Diff tracker should *always* find at least one chunk if collection exists
- // Get the diff query required
- auto diffQuery = differ.configDiffQuery();
-
repl::OpTime opTime;
std::vector<ChunkType> chunks;
uassertStatusOK(Grid::get(txn)->catalogClient(txn)->getChunks(