summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-05-20 11:29:21 -0400
committerAaron <aaron@10gen.com>2009-05-20 11:29:21 -0400
commit04d6ddd42bbd0b3a1497b9e989f486e12d3edf42 (patch)
tree127bc527fb9e6737dafbeef988a16b422880f0a2 /shell
parent6516e72042cd7e6ff88717b8a9bb5991f223c6c1 (diff)
downloadmongo-04d6ddd42bbd0b3a1497b9e989f486e12d3edf42.tar.gz
handle more non-server programs
Diffstat (limited to 'shell')
-rw-r--r--shell/utils.cpp2
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 );