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 13:49:24 +0000 |
commit | 8ef4580520429754f85003cdb9d126aede402dbd (patch) | |
tree | d280e2e53df96bcf8f146eef480ce880f7bd540b | |
parent | 02e789a65916d2ec180a6d49a6114f92cd9ff36f (diff) | |
download | mongo-8ef4580520429754f85003cdb9d126aede402dbd.tar.gz |
SERVER-57712 Do not update the metadata format if the epochs are different in the SSCCL
-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 4d08182ccad..a229190f8d8 100644 --- a/src/mongo/db/s/shard_server_catalog_cache_loader.cpp +++ b/src/mongo/db/s/shard_server_catalog_cache_loader.cpp @@ -715,8 +715,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( |