summaryrefslogtreecommitdiff
path: root/db/db.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/db.cpp')
-rw-r--r--db/db.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/db/db.cpp b/db/db.cpp
index 97869c5..579b4a1 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -639,7 +639,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")
@@ -996,18 +995,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;
}