diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_split_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_split_cmd.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_split_cmd.cpp b/src/mongo/s/commands/cluster_split_cmd.cpp index 19d33b3f10b..5532fac1daf 100644 --- a/src/mongo/s/commands/cluster_split_cmd.cpp +++ b/src/mongo/s/commands/cluster_split_cmd.cpp @@ -270,8 +270,10 @@ public: ChunkRange(chunk->getMin(), chunk->getMax()), {splitPoint})); - Grid::get(opCtx)->catalogCache()->invalidateShardForShardedCollection(nss, - chunk->getShardId()); + Grid::get(opCtx) + ->catalogCache() + ->invalidateShardOrEntireCollectionEntryForShardedCollection( + nss, boost::none, chunk->getShardId()); return true; } |