diff options
author | Kim Tao <kimberly.tao@mongodb.com> | 2018-12-12 17:37:12 -0500 |
---|---|---|
committer | Kim Tao <kimberly.tao@mongodb.com> | 2019-01-10 10:50:35 -0500 |
commit | 47262867106c18aec3bc385dc13a5b0e90f33e7f (patch) | |
tree | 4b1f94b68fd17e0c63aaa8a471e668739cfec76c /src/mongo/shell/db.js | |
parent | 9fd676fd83639f5ab55f733cd63ff2f8e57baa84 (diff) | |
download | mongo-47262867106c18aec3bc385dc13a5b0e90f33e7f.tar.gz |
SERVER-33226: remove getPrevError() command
Diffstat (limited to 'src/mongo/shell/db.js')
-rw-r--r-- | src/mongo/shell/db.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js index f2a330ef89a..20e697f574b 100644 --- a/src/mongo/shell/db.js +++ b/src/mongo/shell/db.js @@ -616,7 +616,6 @@ var DB; print("\tdb.getMongo() get the server connection object"); print("\tdb.getMongo().setSlaveOk() allow queries on a replication slave server"); print("\tdb.getName()"); - print("\tdb.getPrevError()"); print("\tdb.getProfilingLevel() - deprecated"); print("\tdb.getProfilingStatus() - returns if profiling is on and slow threshold"); print("\tdb.getReplicationInfo()"); @@ -848,17 +847,6 @@ var DB; }; DB.prototype.getLastErrorCmd = DB.prototype.getLastErrorObj; - /* Return the last error which has occurred, even if not the very last error. - - Returns: - { err : <error message>, nPrev : <how_many_ops_back_occurred>, ok : 1 } - - result.err will be null if no error has occurred. - */ - DB.prototype.getPrevError = function() { - return this.runCommand({getpreverror: 1}); - }; - DB.prototype._getCollectionInfosCommand = function( filter, nameOnly = false, authorizedCollections = false) { filter = filter || {}; |