diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_move_chunk_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_move_chunk_cmd.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mongo/s/commands/cluster_move_chunk_cmd.cpp b/src/mongo/s/commands/cluster_move_chunk_cmd.cpp index 01cdb91234e..f6e2d27c80f 100644 --- a/src/mongo/s/commands/cluster_move_chunk_cmd.cpp +++ b/src/mongo/s/commands/cluster_move_chunk_cmd.cpp @@ -198,9 +198,14 @@ public: cmdObj["waitForDelete"].trueValue(), forceJumbo)); - Grid::get(opCtx)->catalogCache()->invalidateShardForShardedCollection(nss, - chunk->getShardId()); - Grid::get(opCtx)->catalogCache()->invalidateShardForShardedCollection(nss, to->getId()); + Grid::get(opCtx) + ->catalogCache() + ->invalidateShardOrEntireCollectionEntryForShardedCollection( + nss, boost::none, chunk->getShardId()); + Grid::get(opCtx) + ->catalogCache() + ->invalidateShardOrEntireCollectionEntryForShardedCollection( + nss, boost::none, to->getId()); result.append("millis", t.millis()); return true; |