diff options
author | Kevin Pulo <kevin.pulo@mongodb.com> | 2015-07-13 23:22:35 +1000 |
---|---|---|
committer | Kevin Pulo <kevin.pulo@mongodb.com> | 2015-07-13 23:22:35 +1000 |
commit | 63863aefa21b33e6f84b8b466f70581dd921dba7 (patch) | |
tree | 809e4b4bcfbaa1907a34c5e43ce9e12ec4ead835 /src/mongo/shell/shardingtest.js | |
parent | 48432412d79d0712367837a12637d3682c04fddb (diff) | |
download | mongo-63863aefa21b33e6f84b8b466f70581dd921dba7.tar.gz |
SERVER-18796: sh.status() show 'dropped:false' colls again
Specifically:
* printShardingStatus()/sh.status() show collections with missing 'dropped' field
* Don't omit 'dropped:false' in config.collections
* Add jstest for basic validation of printShardingStatus() output
Diffstat (limited to 'src/mongo/shell/shardingtest.js')
-rw-r--r-- | src/mongo/shell/shardingtest.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/shardingtest.js b/src/mongo/shell/shardingtest.js index cc1d85479b5..a24949f58c3 100644 --- a/src/mongo/shell/shardingtest.js +++ b/src/mongo/shell/shardingtest.js @@ -795,7 +795,7 @@ printShardingStatus = function( configDB , verbose ){ configDB.collections.find( { _id : new RegExp( "^" + RegExp.escape(db._id) + "\\." ) } ). sort( { _id : 1 } ).forEach( function( coll ){ - if ( coll.dropped == false ){ + if ( ! coll.dropped ){ output( "\t\t" + coll._id ); output( "\t\t\tshard key: " + tojson(coll.key) ); output( "\t\t\tchunks:" ); |