diff options
Diffstat (limited to 'src/mongo/util/net/ssl/detail/io.hpp')
-rw-r--r-- | src/mongo/util/net/ssl/detail/io.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/net/ssl/detail/io.hpp b/src/mongo/util/net/ssl/detail/io.hpp index d6e376b00f0..f6ff6edd1d8 100644 --- a/src/mongo/util/net/ssl/detail/io.hpp +++ b/src/mongo/util/net/ssl/detail/io.hpp @@ -29,7 +29,7 @@ namespace ssl { namespace detail { // Failpoint to force small reads of data to exercise the SChannel buffering code -MONGO_FAIL_POINT_DECLARE(smallTLSReads); +extern ::mongo::FailPoint smallTLSReads; template <typename Stream, typename Operation> std::size_t io(Stream& next_layer, stream_core& core, const Operation& op, asio::error_code& ec) { @@ -42,7 +42,7 @@ std::size_t io(Stream& next_layer, stream_core& core, const Operation& op, asio: // the underlying transport. if (core.input_.size() == 0) { // Read tiny amounts of TLS data to test the SChannel buffering code - if (MONGO_FAIL_POINT(smallTLSReads)) { + if (MONGO_unlikely(smallTLSReads.shouldFail())) { core.input_ = asio::buffer(core.input_buffer_, next_layer.read_some( |