diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-06-06 11:16:57 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-06-06 11:16:57 -0400 |
commit | 74ddb407d9fcb62b5e90d1310457d9593cd19698 (patch) | |
tree | fba045a32c39a283bba55f4188533743c3066ac2 /db/db.cpp | |
parent | 020a5f122d07fdd0f021fc3610d749acd2ad8bdc (diff) | |
download | mongo-74ddb407d9fcb62b5e90d1310457d9593cd19698.tar.gz |
maxconns for mongos
Diffstat (limited to 'db/db.cpp')
-rw-r--r-- | db/db.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/db/db.cpp b/db/db.cpp index 8e49d99f31e..8da9c7ca1e3 100644 --- a/db/db.cpp +++ b/db/db.cpp @@ -576,7 +576,6 @@ int main(int argc, char* argv[]) { ("journalOptions", po::value<int>(), "journal diagnostic options") ("ipv6", "enable IPv6 support (disabled by default)") ("jsonp","allow JSONP access via http (has security implications)") - ("maxConns",po::value<int>(), "max number of simultaneous connections") ("noauth", "run without security") ("nohttpinterface", "disable http interface") ("noprealloc", "disable data file preallocation - will often hurt performance") @@ -908,18 +907,6 @@ int main(int argc, char* argv[]) { if ( params.count( "profile" ) ) { cmdLine.defaultProfile = params["profile"].as<int>(); } - if ( params.count( "maxConns" ) ) { - int newSize = params["maxConns"].as<int>(); - if ( newSize < 5 ) { - out() << "maxConns has to be at least 5" << endl; - dbexit( EXIT_BADOPTIONS ); - } - else if ( newSize >= 10000000 ) { - out() << "maxConns can't be greater than 10000000" << endl; - dbexit( EXIT_BADOPTIONS ); - } - connTicketHolder.resize( newSize ); - } if (params.count("nounixsocket")) { noUnixSocket = true; } |