summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-05-19 10:54:06 -0400
committerEliot Horowitz <eliot@10gen.com>2009-05-19 10:54:06 -0400
commitc60cf5c1c88fcc4b1942d8d3b72c7495daf2f906 (patch)
tree8895bfeef824d639fa72b69554e3f96b6d2e8de2
parentb773d2c965a3965fc470b0d1cac3f52346f80b3a (diff)
downloadmongo-c60cf5c1c88fcc4b1942d8d3b72c7495daf2f906.tar.gz
cleaning index accessor methods
-rw-r--r--shell/collection.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/collection.js b/shell/collection.js
index 4bfe06b3307..12eba186f7c 100644
--- a/shell/collection.js
+++ b/shell/collection.js
@@ -245,11 +245,12 @@ DBCollection.prototype.getIndexes = function(){
}
DBCollection.prototype.getIndices = DBCollection.prototype.getIndexes;
+DBCollection.prototype.getIndexSpecs = DBCollection.prototype.getIndexes;
-DBCollection.prototype.getIndexSpecs = function(){
+DBCollection.prototype.getIndexKeys = function(){
return this.getIndexes().map(
function(i){
- return i;
+ return i.key;
}
);
}