diff options
author | Jason Carey <jcarey@argv.me> | 2018-12-20 10:45:35 -0500 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2019-01-02 10:01:43 -0500 |
commit | 94f6c4d2832e4ec88b30045ceb1907af54725c78 (patch) | |
tree | 3b0b1f9addf4c5e685059fa24d9b4697b07e6a0d /src/mongo/transport/transport_layer_manager.cpp | |
parent | ba7f1223210a95b18b14271e498fb18c5b5e7b96 (diff) | |
download | mongo-94f6c4d2832e4ec88b30045ceb1907af54725c78.tar.gz |
SERVER-38177 Fix --repair with --bind_ip
Setting bind ips in server global params causes an error when spinning
up an egress only transport layer. It's more appropriate in that case
to ignore the bind ips.
Diffstat (limited to 'src/mongo/transport/transport_layer_manager.cpp')
-rw-r--r-- | src/mongo/transport/transport_layer_manager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/transport/transport_layer_manager.cpp b/src/mongo/transport/transport_layer_manager.cpp index de36bb2e61f..2d3f7146775 100644 --- a/src/mongo/transport/transport_layer_manager.cpp +++ b/src/mongo/transport/transport_layer_manager.cpp @@ -121,6 +121,7 @@ Status TransportLayerManager::addAndStartTransportLayer(std::unique_ptr<Transpor std::unique_ptr<TransportLayer> TransportLayerManager::makeAndStartDefaultEgressTransportLayer() { transport::TransportLayerASIO::Options opts(&serverGlobalParams); opts.mode = transport::TransportLayerASIO::Options::kEgress; + opts.ipList.clear(); auto ret = stdx::make_unique<transport::TransportLayerASIO>(opts, nullptr); uassertStatusOK(ret->setup()); |