diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/s/shard_server_catalog_cache_loader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/s/shard_server_catalog_cache_loader.cpp b/src/mongo/db/s/shard_server_catalog_cache_loader.cpp index 5fc37ad15e5..ec5156465a6 100644 --- a/src/mongo/db/s/shard_server_catalog_cache_loader.cpp +++ b/src/mongo/db/s/shard_server_catalog_cache_loader.cpp @@ -716,8 +716,9 @@ ShardServerCatalogCacheLoader::_schedulePrimaryGetChunksSince( if (maxLoaderVersion.isSet() && - (maxLoaderVersion.getTimestamp().is_initialized() != - collAndChunks.creationTime.is_initialized())) { + maxLoaderVersion.getTimestamp().is_initialized() != + collAndChunks.creationTime.is_initialized() && + maxLoaderVersion.epoch() == collAndChunks.epoch) { // This task will update the metadata format of the collection and all its chunks. // It doesn't apply the changes of the ChangedChunks, we will do that in the next task _ensureMajorityPrimaryAndScheduleCollAndChunksTask( |