diff options
Diffstat (limited to 'jstests/sharding/auth_repl.js')
-rw-r--r-- | jstests/sharding/auth_repl.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/auth_repl.js b/jstests/sharding/auth_repl.js index f4deba6f195..568cbc4a5ac 100644 --- a/jstests/sharding/auth_repl.js +++ b/jstests/sharding/auth_repl.js @@ -102,9 +102,9 @@ assert.eq(1, testDB.auth('a', 'a')); // Find out the current cached secondary in the repl connection conn.setSlaveOk(true); -var secHost = testColl.find().readPref('secondary').explain().server; +var serverInfo = testColl.find().readPref('secondary').explain().serverInfo; var secNodeIdx = -1; -var secPortStr = secHost.split(':')[1]; +var secPortStr = serverInfo.port.toString(); for (var x = 0; x < nodeCount; x++) { var nodePortStr = replTest.nodes[x].host.split(':')[1]; |