From 04d6ddd42bbd0b3a1497b9e989f486e12d3edf42 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 20 May 2009 11:29:21 -0400 Subject: [PATCH] handle more non-server programs --- shell/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );