summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorPierlauro Sciarelli <pierlauro.sciarelli@mongodb.com>2020-08-26 13:42:17 +0200
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-26 13:37:49 +0000
commit96b779115f139a47fe9d6349f7ce0d54140ad25f (patch)
tree101efc1f9c6402ded9fe0579bfdecf3c599d1808 /src/mongo
parent199df5ec6c6b8c0fc8e74dfad8a074547b79d3f2 (diff)
downloadmongo-96b779115f139a47fe9d6349f7ce0d54140ad25f.tar.gz
SERVER-50458 Re-enable retryability of commitChunkMigration on the config server
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp b/src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp
index 9ecf9fe0623..a81c8d9ca34 100644
--- a/src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp
+++ b/src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp
@@ -640,9 +640,8 @@ BSONObj getShardAndCollectionVersion(OperationContext* opCtx,
BSON(ChunkType::lastmod << -1), // Sort by version.
1)); // Limit 1.
- uassert(4914700,
- str::stream() << "Couldn't retrieve collection version from config server",
- swCollectionVersion.isOK());
+ uassertStatusOKWithContext(swCollectionVersion,
+ "Couldn't retrieve collection version from config server");
auto swDonorShardVersion = getMaxChunkVersionFromQueryResponse(
nss,