summaryrefslogtreecommitdiff
path: root/shell/db.js
diff options
context:
space:
mode:
authorDwight Merriman <dwight@10gen.com>2010-04-21 21:19:37 -0400
committerDwight Merriman <dwight@10gen.com>2010-04-21 21:19:37 -0400
commit4150161551ec833e56765b974770010734c82860 (patch)
tree3300a53918844a34091c138178af2658d555b508 /shell/db.js
parent3d7d79aa9e5415f1735d058153bd4870fce3ecc1 (diff)
downloadmongo-4150161551ec833e56765b974770010734c82860.tar.gz
rs
Diffstat (limited to 'shell/db.js')
-rw-r--r--shell/db.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/shell/db.js b/shell/db.js
index 5e2c3c0e120..21c15293e39 100644
--- a/shell/db.js
+++ b/shell/db.js
@@ -259,7 +259,7 @@ DB.prototype.help = function() {
print("\tdb.commandHelp(name) returns the help for the command");
print("\tdb.copyDatabase(fromdb, todb, fromhost)");
print("\tdb.createCollection(name, { size : ..., capped : ..., max : ... } )");
- print("\tdb.currentOp() displays the current operation in the db" );
+ print("\tdb.currentOp() displays the current operation in the db");
print("\tdb.dropDatabase()");
print("\tdb.eval(func, args) run code server-side");
print("\tdb.getCollection(cname) same as db['cname'] or db.cname");
@@ -273,9 +273,9 @@ DB.prototype.help = function() {
print("\tdb.getProfilingLevel()");
print("\tdb.getReplicationInfo()");
print("\tdb.getSisterDB(name) get the db at the same server as this onew");
- print("\tdb.killOp(opid) kills the current operation in the db" );
- print("\tdb.listCommands() lists all the db commands" );
- print("\tdb.printCollectionStats()" );
+ print("\tdb.killOp(opid) kills the current operation in the db");
+ print("\tdb.listCommands() lists all the db commands");
+ print("\tdb.printCollectionStats()");
print("\tdb.printReplicationInfo()");
print("\tdb.printSlaveReplicationInfo()");
print("\tdb.printShardingStatus()");
@@ -287,7 +287,8 @@ DB.prototype.help = function() {
print("\tdb.setProfilingLevel(level,<slowms>) 0=off 1=slow 2=all");
print("\tdb.shutdownServer()");
print("\tdb.stats()");
- print("\tdb.version() current version of the server" );
+ print("\tdb.version() current version of the server");
+ print("\tdb.getMongo().setSlaveOk() allow queries on a replication slave server");
}
DB.prototype.printCollectionStats = function(){