Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use curr collection not coll var when printing shard chunks

  • Loading branch information...
commit b626e959a3283c1b7eec052a372b244505dc81a2 1 parent 5899a6d
gregs authored erh committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.