diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-03-01 18:25:16 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-03-01 18:25:16 -0500 |
commit | 6084f5cb58657f2576e5a63794fcf302b1777a8c (patch) | |
tree | 73551b07cae309f4475a75a51062edf224cc6bf9 | |
parent | 18cc49471b44049f97bc047c3a3200c2011c4e54 (diff) | |
download | mongo-6084f5cb58657f2576e5a63794fcf302b1777a8c.tar.gz |
SERVER-8771 Additional fix for mongostat --discover with mongos
-rw-r--r-- | src/mongo/tools/stat_util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/tools/stat_util.cpp b/src/mongo/tools/stat_util.cpp index b3c61a65c05..26d62434770 100644 --- a/src/mongo/tools/stat_util.cpp +++ b/src/mongo/tools/stat_util.cpp @@ -46,7 +46,7 @@ namespace mongo { BSONObj StatUtil::doRow( const BSONObj& a , const BSONObj& b ) { BSONObjBuilder result; - bool isMongos = b["shardCursorType"].type() == Object; // TODO: should have a better check + bool isMongos = b["shardCursorType"].type() == Object || b["process"].String() == "mongos"; if ( a["opcounters"].isABSONObj() && b["opcounters"].isABSONObj() ) { BSONObj ax = a["opcounters"].embeddedObject(); |