diff options
author | Aaron <aaron@10gen.com> | 2009-05-20 11:29:21 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-05-20 11:29:21 -0400 |
commit | 04d6ddd42bbd0b3a1497b9e989f486e12d3edf42 (patch) | |
tree | 127bc527fb9e6737dafbeef988a16b422880f0a2 /shell | |
parent | 6516e72042cd7e6ff88717b8a9bb5991f223c6c1 (diff) | |
download | mongo-04d6ddd42bbd0b3a1497b9e989f486e12d3edf42.tar.gz |
handle more non-server programs
Diffstat (limited to 'shell')
-rw-r--r-- | shell/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/utils.cpp b/shell/utils.cpp index afc70940351..50e6785f666 100644 --- a/shell/utils.cpp +++ b/shell/utils.cpp @@ -217,7 +217,7 @@ namespace mongo { } argv_[ args.nFields() ] = 0; - if ( program == "mongo" ) + if ( program != "mongod" && program != "mongos" ) port_ = 0; else assert( port_ > 0 ); |