diff options
author | Sergi Mateo Bellido <sergi.mateo-bellido@mongodb.com> | 2021-06-15 17:04:02 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-16 14:18:42 +0000 |
commit | c7099f2a2f34b0972fa11ce8085c04e70d5ddebe (patch) | |
tree | 804b622208b22f4ee9bc88ec5cdbaad2232d3fa7 /src | |
parent | 1cf82af0ddf134ae2b85f8d5a0c8e5430fb8b863 (diff) | |
download | mongo-c7099f2a2f34b0972fa11ce8085c04e70d5ddebe.tar.gz |
SERVER-57712 Do not update the metadata format if the epochs are different in the SSCCL
(cherry picked from commit 8ef4580520429754f85003cdb9d126aede402dbd)
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( |