diff options
author | Greg Studer <greg@10gen.com> | 2013-08-21 13:26:23 -0400 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2013-08-21 13:26:43 -0400 |
commit | 5f86ad54f492a352c589dd949706c0e820c2a453 (patch) | |
tree | f337e955cce88bcb3fb5ed50d288f5b026cb075f | |
parent | a02c3c2f20610bee93fd68cad2324cccc629e2ff (diff) | |
download | mongo-5f86ad54f492a352c589dd949706c0e820c2a453.tar.gz |
SERVER-8598 cleanup_orphaned_cmd_hashed.js minor test improvement
-rw-r--r-- | jstests/sharding/cleanup_orphaned_cmd_hashed.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/jstests/sharding/cleanup_orphaned_cmd_hashed.js b/jstests/sharding/cleanup_orphaned_cmd_hashed.js index 8e7a828015f..5165bde661f 100644 --- a/jstests/sharding/cleanup_orphaned_cmd_hashed.js +++ b/jstests/sharding/cleanup_orphaned_cmd_hashed.js @@ -42,7 +42,7 @@ assert.eq( 200, st.shard0.getCollection( coll + "" ).find().itcount() + st.shard1.getCollection( coll + "" ).find().itcount() ); assert.eq( 100, coll.find().itcount() ); -jsTest.log( "Cleaning up orphaned data..." ); +jsTest.log( "Cleaning up orphaned data in hashed coll..." ); for ( var s = 0; s < 2; s++ ) { var shardAdmin = ( s == 0 ? st.shard0 : st.shard1 ).getDB( "admin" ); @@ -53,10 +53,11 @@ for ( var s = 0; s < 2; s++ ) { result = shardAdmin.runCommand({ cleanupOrphaned : coll + "", startingFromKey : result.stoppedAtKey }); } + + printjson( result ); + assert( result.ok ); } -printjson( result ); -assert( result.ok ); assert.eq( 100, st.shard0.getCollection( coll + "" ).find().itcount() + st.shard1.getCollection( coll + "" ).find().itcount() ); assert.eq( 100, coll.find().itcount() ); |