diff options
author | Cheahuychou Mao <cheahuychou.mao@mongodb.com> | 2020-03-27 02:27:49 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-30 01:48:39 +0000 |
commit | ffff3f7fce95d45192c8b6cb65845907d6128922 (patch) | |
tree | 095a616312119e6724c10a2e56a27ecadd92b79c /src/mongo/executor | |
parent | d8acf3c44e41fd4423caf8a337264a6dac86b8c5 (diff) | |
download | mongo-ffff3f7fce95d45192c8b6cb65845907d6128922.tar.gz |
SERVER-47167 Make hedged read tests more robust
Diffstat (limited to 'src/mongo/executor')
-rw-r--r-- | src/mongo/executor/network_interface_tl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/executor/network_interface_tl.cpp b/src/mongo/executor/network_interface_tl.cpp index 3f2f6871c3d..a988ef76420 100644 --- a/src/mongo/executor/network_interface_tl.cpp +++ b/src/mongo/executor/network_interface_tl.cpp @@ -420,7 +420,8 @@ Status NetworkInterfaceTL::startCommand(const TaskExecutor::CallbackHandle& cbHa } bool targetHostsInAlphabeticalOrder = - MONGO_unlikely(networkInterfaceSendRequestsToTargetHostsInAlphabeticalOrder.shouldFail()); + MONGO_unlikely(networkInterfaceSendRequestsToTargetHostsInAlphabeticalOrder.shouldFail( + [request](const BSONObj&) { return request.hedgeOptions != boost::none; })); if (targetHostsInAlphabeticalOrder) { // Sort the target hosts by host names. |