diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2022-01-24 14:56:18 +0100 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-24 20:03:34 +0000 |
commit | a2aff33b1f4fa49efd85b245e7945e720a775530 (patch) | |
tree | 8dc283bae55d6b8ac2e797ce328d5244eacdd8bd /src/mongo/db/s/collection_sharding_runtime_test.cpp | |
parent | f395e9d34b413781bcfb67c2674378734223466c (diff) | |
download | mongo-a2aff33b1f4fa49efd85b245e7945e720a775530.tar.gz |
SERVER-62783 Get rid of ChunkVersion::appendWithField/parseWithField
Diffstat (limited to 'src/mongo/db/s/collection_sharding_runtime_test.cpp')
-rw-r--r-- | src/mongo/db/s/collection_sharding_runtime_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/collection_sharding_runtime_test.cpp b/src/mongo/db/s/collection_sharding_runtime_test.cpp index 70eaccd5105..00fdf7872bd 100644 --- a/src/mongo/db/s/collection_sharding_runtime_test.cpp +++ b/src/mongo/db/s/collection_sharding_runtime_test.cpp @@ -80,7 +80,7 @@ protected: if (!OperationShardingState::isOperationVersioned(opCtx)) { const auto version = cm.getVersion(ShardId("0")); BSONObjBuilder builder; - version.appendWithField(&builder, ChunkVersion::kShardVersionField); + version.serializeToBSON(ChunkVersion::kShardVersionField, &builder); auto& oss = OperationShardingState::get(opCtx); oss.initializeClientRoutingVersionsFromCommand(kTestNss, builder.obj()); } |