diff options
-rw-r--r-- | src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp | 5 |
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, |