summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/shell/db.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js
index 4696250dfd9..1f1fb5fb1a2 100644
--- a/src/mongo/shell/db.js
+++ b/src/mongo/shell/db.js
@@ -952,7 +952,7 @@ DB.prototype.listCommands = function(){
var s = name + ": ";
if (c.adminOnly) s += " adminOnly ";
- if (c.adminOnly) s += " slaveOk ";
+ if (c.slaveOk) s += " slaveOk ";
s += "\n ";
s += c.help.replace(/\n/g, '\n ');