summaryrefslogtreecommitdiff
path: root/jstests/auth/repl_auth.js
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2014-10-07 18:23:21 -0400
committerDavid Storch <david.storch@10gen.com>2014-10-13 19:59:21 -0400
commitd601b91b6b16be3f93bac2f10952c1e5d273f91f (patch)
treef8b7daf9d3920ded5567489d0d65df50afed9542 /jstests/auth/repl_auth.js
parente7a49e50e5a858b02c9c242c943d7559238bb2b6 (diff)
downloadmongo-d601b91b6b16be3f93bac2f10952c1e5d273f91f.tar.gz
SERVER-14875 explain helpers for the shell
Diffstat (limited to 'jstests/auth/repl_auth.js')
-rw-r--r--jstests/auth/repl_auth.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/auth/repl_auth.js b/jstests/auth/repl_auth.js
index f2e6739be1e..a5bde8167c9 100644
--- a/jstests/auth/repl_auth.js
+++ b/jstests/auth/repl_auth.js
@@ -49,18 +49,18 @@ rsTest.getSecondaries().forEach(function(sec) {
// pool if a different secondary is selected from the previous one so we have to iterate
// a couple of times.
for (var x = 0; x < 20; x++) {
- var explain = fooDB0.user.find().readPref('secondary').explain();
+ var explain = fooDB0.user.find().readPref('secondary').explain('executionStats');
assert.eq(1, explain.executionStats.nReturned);
assert.throws(function() {
- explain = barDB0.user.find().readPref('secondary').explain();
+ explain = barDB0.user.find().readPref('secondary').explain('executionStats');
});
assert.throws(function() {
- explain = fooDB1.user.find().readPref('secondary').explain();
+ explain = fooDB1.user.find().readPref('secondary').explain('executionStats');
});
- explain = barDB1.user.find().readPref('secondary').explain();
+ explain = barDB1.user.find().readPref('secondary').explain('executionStats');
assert.eq(1, explain.executionStats.nReturned);
}