summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgregs <greg@10gen.com>2011-10-26 10:36:00 -0400
committerEliot Horowitz <eliot@10gen.com>2012-03-04 20:07:40 -0500
commitb626e959a3283c1b7eec052a372b244505dc81a2 (patch)
tree7f0fb1a533d7143adb7ed14a6bc17ae5e0e554f9
parent5899a6daa5170289b9db04a41670de7677acd03f (diff)
downloadmongo-b626e959a3283c1b7eec052a372b244505dc81a2.tar.gz
use curr collection not coll var when printing shard chunks
-rw-r--r--shell/collection.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/collection.js b/shell/collection.js
index cb7035d05cd..1b8e4880564 100644
--- a/shell/collection.js
+++ b/shell/collection.js
@@ -703,7 +703,7 @@ DBCollection.prototype.getShardDistribution = function(){
var shardStats = stats.shards[ shard ]
- var chunks = config.chunks.find({ _id : sh._collRE( coll ), shard : shard }).toArray()
+ var chunks = config.chunks.find({ _id : sh._collRE( this ), shard : shard }).toArray()
numChunks += chunks.length