diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-07-28 17:23:59 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-07-28 17:24:42 -0400 |
commit | 724fc134c4a9855b66a8c6f594a354ea888f60a8 (patch) | |
tree | 7e62ff0309479e8de1a5824b1de2d7fd6e5fb3f1 /shell | |
parent | cd85624ed50ba1283304f1c16e23808534c147e6 (diff) | |
download | mongo-724fc134c4a9855b66a8c6f594a354ea888f60a8.tar.gz |
make sure to drop the same dups on master and secondaries SERVER-1086
Diffstat (limited to 'shell')
-rw-r--r-- | shell/mongo_vstudio.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/shell/mongo_vstudio.cpp b/shell/mongo_vstudio.cpp index 991e29636bf..5677297cb48 100644 --- a/shell/mongo_vstudio.cpp +++ b/shell/mongo_vstudio.cpp @@ -2570,8 +2570,9 @@ const StringData _jscode_raw_mongo = "mongoInject( Mongo.prototype );\n" "}\n" "\n" -"Mongo.prototype.setSlaveOk = function() {\n" -"this.slaveOk = true;\n" +"Mongo.prototype.setSlaveOk = function( value ) {\n" +"if( value == undefined ) value = true\n" +"this.slaveOk = value\n" "}\n" "\n" "Mongo.prototype.getDB = function( name ){\n" @@ -2589,6 +2590,10 @@ const StringData _jscode_raw_mongo = "return this.getDB( \"admin\" ).runCommand( cmd );\n" "}\n" "\n" +"Mongo.prototype.setLogLevel = function( logLevel ){\n" +"return this.adminCommand({ setParameter : 1, logLevel : logLevel })\n" +"}\n" +"\n" "Mongo.prototype.getDBNames = function(){\n" "return this.getDBs().databases.map(\n" "function(z){\n" |