diff options
author | Adam Midvidy <amidvidy@gmail.com> | 2015-03-26 10:03:29 -0400 |
---|---|---|
committer | Adam Midvidy <amidvidy@gmail.com> | 2015-03-26 14:20:38 -0400 |
commit | 8a805598bbcb2ac20c345e0734c9fbd4c4722cb0 (patch) | |
tree | 4aebb32c235232b931c705bbd9e6c86f27162ff4 /jstests/replsets | |
parent | 78005d5702732d841119ff2628d5675a5049335c (diff) | |
download | mongo-8a805598bbcb2ac20c345e0734c9fbd4c4722cb0.tar.gz |
SERVER-7775 refactor fsyncUnlock to execute through standard command path
Diffstat (limited to 'jstests/replsets')
-rw-r--r-- | jstests/replsets/fsync_lock_read_secondaries.js | 2 | ||||
-rw-r--r-- | jstests/replsets/maxSyncSourceLagSecs.js | 2 | ||||
-rw-r--r-- | jstests/replsets/stepdown.js | 2 | ||||
-rw-r--r-- | jstests/replsets/stepdown3.js | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/jstests/replsets/fsync_lock_read_secondaries.js b/jstests/replsets/fsync_lock_read_secondaries.js index 7aab61fd4b2..d217e85241f 100644 --- a/jstests/replsets/fsync_lock_read_secondaries.js +++ b/jstests/replsets/fsync_lock_read_secondaries.js @@ -53,7 +53,7 @@ for (var i=0; i<docNum; i++) { // this should work just fine. var slave0count = slaves[0].getDB("foo").bar.count(); assert.eq(slave0count, 100, "Doc count in fsync lock wrong. Expected (=100), found " + slave0count); -assert(slaves[0].getDB("admin").$cmd.sys.unlock.findOne().ok); +assert(slaves[0].getDB("admin").fsyncUnlock().ok); // The secondary should have equal or more documents than what it had before. assert.soon(function() { diff --git a/jstests/replsets/maxSyncSourceLagSecs.js b/jstests/replsets/maxSyncSourceLagSecs.js index 8d4702510e1..1a7348c2e64 100644 --- a/jstests/replsets/maxSyncSourceLagSecs.js +++ b/jstests/replsets/maxSyncSourceLagSecs.js @@ -44,6 +44,6 @@ return (slaves[1].getDB("foo").bar.count() === 2); }, "slave should have caught up after syncing to primary."); - assert.commandWorked(slaves[0].getDB("admin").$cmd.sys.unlock.findOne()); + assert.commandWorked(slaves[0].getDB("admin").fsyncUnlock()); replTest.stopSet(); }()); diff --git a/jstests/replsets/stepdown.js b/jstests/replsets/stepdown.js index 474154ae6ef..275d7726d40 100644 --- a/jstests/replsets/stepdown.js +++ b/jstests/replsets/stepdown.js @@ -53,7 +53,7 @@ assert.eq(r2.ismaster, false); assert.eq(r2.secondary, true); print("\nunlock"); -printjson(locked.getDB("admin").$cmd.sys.unlock.findOne()); +printjson(locked.getDB("admin").fsyncUnlock()); print("\nreset stepped down time"); master.getDB("admin").runCommand({replSetFreeze:0}); diff --git a/jstests/replsets/stepdown3.js b/jstests/replsets/stepdown3.js index af7f84607b7..05ce573c883 100644 --- a/jstests/replsets/stepdown3.js +++ b/jstests/replsets/stepdown3.js @@ -46,5 +46,5 @@ print("result of gle:"); printjson(result); // unlock and shut down -printjson(locked.getDB("admin").$cmd.sys.unlock.findOne()); +printjson(locked.getDB("admin").fsyncUnlock()); replTest.stopSet(); |