From 06111946baab8c63097e19693fd312e031efbbea Mon Sep 17 00:00:00 2001 From: Blake Oler Date: Mon, 20 Apr 2020 18:12:05 -0400 Subject: SERVER-47441 Remove unnecessary movePrimary calls from commands_lib.js --- jstests/auth/lib/commands_lib.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/jstests/auth/lib/commands_lib.js b/jstests/auth/lib/commands_lib.js index 830dbf4527e..a67b433f38d 100644 --- a/jstests/auth/lib/commands_lib.js +++ b/jstests/auth/lib/commands_lib.js @@ -539,9 +539,6 @@ var authCommandsLib = { skipSharded: true, setup: function(db) { assert.writeOK(db.getSisterDB(firstDbName).x.save({})); - // SERVER-47441 `movePrimary` is a mongos only command. - db.getSisterDB(adminDbName).runCommand({movePrimary: firstDbName, to: shard0name}); - db.getSisterDB(adminDbName).runCommand({movePrimary: secondDbName, to: shard0name}); }, teardown: function(db) { db.getSisterDB(firstDbName).x.drop(); @@ -4956,9 +4953,6 @@ var authCommandsLib = { command: {renameCollection: firstDbName + ".x", to: secondDbName + ".y"}, setup: function(db) { assert.writeOK(db.getSisterDB(firstDbName).x.save({})); - // SERVER-47441 `movePrimary` is a mongos only command. - db.getSisterDB(adminDbName).runCommand({movePrimary: firstDbName, to: shard0name}); - db.getSisterDB(adminDbName).runCommand({movePrimary: secondDbName, to: shard0name}); }, teardown: function(db) { db.getSisterDB(firstDbName).x.drop(); -- cgit v1.2.1