Skip to content
Browse files

use curr collection not coll var when printing shard chunks

  • Loading branch information...
1 parent 5899a6d commit b626e959a3283c1b7eec052a372b244505dc81a2 gregs committed with erh Oct 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 shell/collection.js
View
2 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

0 comments on commit b626e95

Please sign in to comment.
Something went wrong with that request. Please try again.