diff options
author | agirbal <antoine@10gen.com> | 2011-09-20 22:58:58 -0700 |
---|---|---|
committer | agirbal <antoine@10gen.com> | 2011-09-20 23:00:36 -0700 |
commit | b9d4ce580ee057fc521ea531bb69a0ee91cbf8cd (patch) | |
tree | 4a8d09831146b8d7557942678648121296ec814b /shell/utils.js | |
parent | 55351e6fc80e2640ffd5ae0f397b7a96e4418659 (diff) | |
download | mongo-b9d4ce580ee057fc521ea531bb69a0ee91cbf8cd.tar.gz |
SERVER-2031: setSlaveOk at each level in shell
Diffstat (limited to 'shell/utils.js')
-rw-r--r-- | shell/utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/utils.js b/shell/utils.js index e81b7c2023b..c12d1677ad0 100644 --- a/shell/utils.js +++ b/shell/utils.js @@ -1470,7 +1470,7 @@ rs.help = function () { print("\tan error, even if the command succeeds."); print("\tsee also http://<mongod_host>:28017/_replSet for additional diagnostic info"); } -rs.slaveOk = function () { return db.getMongo().setSlaveOk(); } +rs.slaveOk = function (value) { return db.getMongo().setSlaveOk(value); } rs.status = function () { return db._adminCommand("replSetGetStatus"); } rs.isMaster = function () { return db.isMaster(); } rs.initiate = function (c) { return db._adminCommand({ replSetInitiate: c }); } |