From bf749ab727ce87628539550c445f8dae54d4fcb0 Mon Sep 17 00:00:00 2001 From: Randolph Tan Date: Wed, 25 Feb 2015 17:47:15 -0500 Subject: [PATCH] SERVER-17383 Make sure that ops are sent to the right shard in rename.js --- jstests/sharding/rename.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jstests/sharding/rename.js b/jstests/sharding/rename.js index cc8a391bddf..2ce41887a05 100644 --- a/jstests/sharding/rename.js +++ b/jstests/sharding/rename.js @@ -18,6 +18,7 @@ assert.eq(db.bar.count(), 1, '2.2'); assert.eq(db.foo.count(), 0, '2.3'); s.adminCommand( { enablesharding : "test" } ); +s.getDB('admin').runCommand({ movePrimary: 'test', to: 'rename-rs0' }); jsTest.log("Testing write concern (1)");