summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2010-09-23 10:30:27 -0400
committerAlberto Lerner <alerner@10gen.com>2010-09-27 08:33:42 -0400
commitae8f18e9216e42aa2eca9fb837908f4c2af7ce6d (patch)
tree7c7512fb5467d5a830e57388b05908078d66c02e
parent0d2fbaf50a1a97994dbfafa7df5684653e5813d7 (diff)
downloadmongo-ae8f18e9216e42aa2eca9fb837908f4c2af7ce6d.tar.gz
SERVER-1836 don't mention droped colleciton in printShardingStatus
-rw-r--r--shell/servers.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/shell/servers.js b/shell/servers.js
index eb548ea73be..1b3aadca169 100644
--- a/shell/servers.js
+++ b/shell/servers.js
@@ -457,13 +457,15 @@ printShardingStatus = function( configDB ){
if (db.partitioned){
configDB.collections.find( { _id : new RegExp( "^" + db._id + "\." ) } ).sort( { _id : 1 } ).forEach(
function( coll ){
- output("\t\t" + coll._id + " chunks:");
- configDB.chunks.find( { "ns" : coll._id } ).sort( { min : 1 } ).forEach(
- function(chunk){
- output( "\t\t\t" + tojson( chunk.min ) + " -->> " + tojson( chunk.max ) +
- " on : " + chunk.shard + " " + tojson( chunk.lastmod ) );
- }
- );
+ if ( coll.dropped == false ){
+ output("\t\t" + coll._id + " chunks:");
+ configDB.chunks.find( { "ns" : coll._id } ).sort( { min : 1 } ).forEach(
+ function(chunk){
+ output( "\t\t\t" + tojson( chunk.min ) + " -->> " + tojson( chunk.max ) +
+ " on : " + chunk.shard + " " + tojson( chunk.lastmod ) );
+ }
+ );
+ }
}
)
}