diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-14 14:26:38 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-14 14:26:38 -0300 |
| commit | 294bc6ecabf14c09c9bc8644704921dcf97cb44e (patch) | |
| tree | 279b1e0bab53901a1647ac63c1c724f0f789a663 /src/mongo/client/sdam/sdam_json_test_runner.cpp | |
| parent | 70be7c27a251621187a1de533462ae2bb1e3bd39 (diff) | |
| parent | 1e917fd798aa25b7066d4b414b51184f13d5a092 (diff) | |
Update upstream source from tag 'upstream/6.0.10'debian/6.0.10-1
Update to upstream version '6.0.10'
with Debian dir 2d176fa254eee97b139f712fec5709641335a8c3
Diffstat (limited to 'src/mongo/client/sdam/sdam_json_test_runner.cpp')
| -rw-r--r-- | src/mongo/client/sdam/sdam_json_test_runner.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/client/sdam/sdam_json_test_runner.cpp b/src/mongo/client/sdam/sdam_json_test_runner.cpp index b3fdcba09f0..431d281a8f7 100644 --- a/src/mongo/client/sdam/sdam_json_test_runner.cpp +++ b/src/mongo/client/sdam/sdam_json_test_runner.cpp @@ -82,13 +82,13 @@ public: for (auto& response : bsonResponses) { const auto pair = response.Array(); const auto address = HostAndPort(pair[0].String()); - const auto bsonIsMaster = pair[1].Obj(); + const auto bsonHello = pair[1].Obj(); - if (bsonIsMaster.nFields() == 0) { - _isMasterResponses.push_back(HelloOutcome(address, BSONObj(), "network error")); + if (bsonHello.nFields() == 0) { + _helloResponses.push_back(HelloOutcome(address, BSONObj(), "network error")); } else { - _isMasterResponses.push_back( - HelloOutcome(address, bsonIsMaster, duration_cast<HelloRTT>(kLatency))); + _helloResponses.push_back( + HelloOutcome(address, bsonHello, duration_cast<HelloRTT>(kLatency))); } } _topologyOutcome = phase["outcome"].Obj(); @@ -109,7 +109,7 @@ public: PhaseResult execute(TopologyManager& topology) const { PhaseResult testResult{{}, _phaseNum}; - for (auto response : _isMasterResponses) { + for (auto response : _helloResponses) { auto descriptionStr = (response.getResponse()) ? response.getResponse()->toString() : "[ Network Error ]"; LOGV2(20202, @@ -418,7 +418,7 @@ private: MongoURI _testUri; int _phaseNum; - std::vector<HelloOutcome> _isMasterResponses; + std::vector<HelloOutcome> _helloResponses; BSONObj _topologyOutcome; }; |
