diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2015-11-06 13:40:59 -0500 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2015-11-06 13:40:59 -0500 |
commit | ce3e47aed550efdcd902ef4d565429bd373e8007 (patch) | |
tree | 2213366c89fbebbdee3925e04f740ef16b944cc6 /src/mongo/tools/mongobridge_options.cpp | |
parent | 36b0d1069a878f1f2e42b79d5b5b539b6c1d4a5d (diff) | |
download | mongo-ce3e47aed550efdcd902ef4d565429bd373e8007.tar.gz |
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.
Diffstat (limited to 'src/mongo/tools/mongobridge_options.cpp')
-rw-r--r-- | src/mongo/tools/mongobridge_options.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
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 <port> --dest <dest> [ --delay <ms> ] [ --help ]" - << std::endl; + *out << "Usage: mongobridge --port <port> --dest <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<int>(); mongoBridgeGlobalParams.destUri = params["dest"].as<std::string>(); - if (params.count("delay")) { - mongoBridgeGlobalParams.delay = params["delay"].as<int>(); - } - return Status::OK(); } |