0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

don't pring getLastError on help()

This commit is contained in:
Eliot Horowitz 2010-04-21 21:58:00 -04:00
parent dc75bbf201
commit d8b762a2ea
3 changed files with 7 additions and 0 deletions

View File

@ -60,6 +60,7 @@ DBCollection.prototype.help = function() {
print("\tdb."+shortName+".update(query, object[, upsert_bool, multi_bool])");
print("\tdb."+shortName+".validate() - SLOW");
print("\tdb."+shortName+".getShardVersion() - only for use with sharding");
return __magicNoPrint;
}
DBCollection.prototype.getFullName = function(){

View File

@ -289,6 +289,8 @@ DB.prototype.help = function() {
print("\tdb.stats()");
print("\tdb.version() current version of the server");
print("\tdb.getMongo().setSlaveOk() allow queries on a replication slave server");
return __magicNoPrint;
}
DB.prototype.printCollectionStats = function(){

View File

@ -1,5 +1,6 @@
__quiet = false;
__magicNoPrint = { __magicNoPrint : 1111 }
chatty = function(s){
if ( ! __quiet )
@ -723,6 +724,9 @@ shellPrintHelper = function( x ){
return;
}
if ( x == __magicNoPrint )
return;
if ( x == null ){
print( "null" );
return;