From ce3e47aed550efdcd902ef4d565429bd373e8007 Mon Sep 17 00:00:00 2001 From: Max Hirschhorn Date: Fri, 6 Nov 2015 13:40:59 -0500 Subject: SERVER-19301 Expose new MongoBridge API for network partition testing. Changes the existing architecture of having a mongobridge process for each unidirection link between two mongod processes in a replica set to having a single mongobridge process per node in the replica set. The mongobridge process is able to distinguish between connections from different hosts by using the "hostInfo" field in the initial isMaster command request. --- src/mongo/tools/mongobridge_options.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/mongo/tools/mongobridge_options.cpp') diff --git a/src/mongo/tools/mongobridge_options.cpp b/src/mongo/tools/mongobridge_options.cpp index ac3932da6e8..1eb1c3b5a12 100644 --- a/src/mongo/tools/mongobridge_options.cpp +++ b/src/mongo/tools/mongobridge_options.cpp @@ -46,18 +46,11 @@ Status addMongoBridgeOptions(moe::OptionSection* options) { options->addOptionChaining("dest", "dest", moe::String, "uri of remote mongod instance"); - - options->addOptionChaining( - "delay", "delay", moe::Int, "transfer delay in milliseconds (default = 0)") - .setDefault(moe::Value(0)); - - return Status::OK(); } void printMongoBridgeHelp(std::ostream* out) { - *out << "Usage: mongobridge --port --dest [ --delay ] [ --help ]" - << std::endl; + *out << "Usage: mongobridge --port --dest [ --help ]" << std::endl; *out << moe::startupOptions.helpString(); *out << std::flush; } @@ -83,10 +76,6 @@ Status storeMongoBridgeOptions(const moe::Environment& params, mongoBridgeGlobalParams.port = params["port"].as(); mongoBridgeGlobalParams.destUri = params["dest"].as(); - if (params.count("delay")) { - mongoBridgeGlobalParams.delay = params["delay"].as(); - } - return Status::OK(); } -- cgit v1.2.1