diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2020-10-08 02:02:24 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-15 17:21:11 +0000 |
commit | 5a9d2dd204f41b4a02fe83d710f3f38c6092b322 (patch) | |
tree | a45a543241ad8b4159e3356ce4d4db151dd5af07 /src/mongo/db/s/transaction_coordinator_test_fixture.cpp | |
parent | dba33bef953f8d1740523c159c66f0fb3b9b53d4 (diff) | |
download | mongo-5a9d2dd204f41b4a02fe83d710f3f38c6092b322.tar.gz |
SERVER-49336 Set ClientMetadata before CommandInvocations are run
This patch does the following:
- Always parses ClientMetadata before command implementations are run.
- Marks general ClientMetadata as final in the first hello.
- Removes client_metadata_ismaster.* (SERVER-50517)
- Switches references to "isMaster" to "hello" (SERVER-50517)
- Binds "$client" metadata as a decoration (SERVER-50804)
Diffstat (limited to 'src/mongo/db/s/transaction_coordinator_test_fixture.cpp')
-rw-r--r-- | src/mongo/db/s/transaction_coordinator_test_fixture.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/s/transaction_coordinator_test_fixture.cpp b/src/mongo/db/s/transaction_coordinator_test_fixture.cpp index 256d0905278..377a1993213 100644 --- a/src/mongo/db/s/transaction_coordinator_test_fixture.cpp +++ b/src/mongo/db/s/transaction_coordinator_test_fixture.cpp @@ -39,7 +39,6 @@ #include "mongo/db/operation_context.h" #include "mongo/db/repl/wait_for_majority_service.h" #include "mongo/rpc/metadata/client_metadata.h" -#include "mongo/rpc/metadata/client_metadata_ismaster.h" #include "mongo/s/catalog/sharding_catalog_client_mock.h" #include "mongo/s/catalog/type_shard.h" #include "mongo/unittest/unittest.h" @@ -137,7 +136,6 @@ void TransactionCoordinatorTestFixture::associateClientMetadata(Client* client, &metadataBuilder)); auto clientMetadata = metadataBuilder.obj(); auto clientMetadataParse = ClientMetadata::parse(clientMetadata["client"]); - ClientMetadataIsMasterState::setClientMetadata(client, - std::move(clientMetadataParse.getValue())); + ClientMetadata::setAndFinalize(client, std::move(clientMetadataParse.getValue())); } } // namespace mongo |