mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
handle more non-server programs
This commit is contained in:
parent
6516e72042
commit
04d6ddd42b
@ -217,7 +217,7 @@ namespace mongo {
|
||||
}
|
||||
argv_[ args.nFields() ] = 0;
|
||||
|
||||
if ( program == "mongo" )
|
||||
if ( program != "mongod" && program != "mongos" )
|
||||
port_ = 0;
|
||||
else
|
||||
assert( port_ > 0 );
|
||||
|
Loading…
Reference in New Issue
Block a user