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:
parent
dc75bbf201
commit
d8b762a2ea
@ -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(){
|
||||
|
@ -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(){
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user