summaryrefslogtreecommitdiff
path: root/jstests/sharding/key_many.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-10-29 16:14:43 -0400
committerEliot Horowitz <eliot@10gen.com>2009-10-29 16:14:43 -0400
commit90eceb3c9170badaa89e8d33d3f31840f19283b0 (patch)
treeade3c81fc8f202f79b71a685d5b35b6c5e0a6a45 /jstests/sharding/key_many.js
parentfdcff3645eaea1c5a6ef6d7b0f6cfd7ebb6ef47e (diff)
downloadmongo-90eceb3c9170badaa89e8d33d3f31840f19283b0.tar.gz
ensureing index on _id shouldn't cause an error
Diffstat (limited to 'jstests/sharding/key_many.js')
-rw-r--r--jstests/sharding/key_many.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/sharding/key_many.js b/jstests/sharding/key_many.js
index 3ccbde0d7e4..b199d2f777c 100644
--- a/jstests/sharding/key_many.js
+++ b/jstests/sharding/key_many.js
@@ -72,6 +72,9 @@ for ( var i=0; i<types.length; i++ ){
assert.eq( 1 , c.find( { xx : { $exists : true } } ).count() , curT.name + " xx 2 " );
assert.eq( curT.values[3] , getKey( c.findOne( { xx : 17 } ) ) , curT.name + " xx 3 " );
+ c.ensureIndex( { _id : 1 } , { unique : true } );
+ assert.eq( null , db.getLastError() , curT.name + " creating _id index should be ok" );
+
// TODO multi update
// TODO remove