diff options
author | Blake Oler <blake.oler@mongodb.com> | 2021-12-21 17:07:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-06 16:57:12 +0000 |
commit | 7a7338906e0303ecd3982a23191cd0584daddce0 (patch) | |
tree | 12eeb56690ea0af5a6853cac4e7850b8a3be9a49 /src/mongo/shell | |
parent | 76fb7482945275ef14dbad296b4fd89dbf5eb385 (diff) | |
download | mongo-7a7338906e0303ecd3982a23191cd0584daddce0.tar.gz |
SERVER-58035 Remove db.runCommandWithMetadata from mongo shell
(cherry picked from commit 02c07c102b0c6d97085fb02805b0e41dedca0a46)
Diffstat (limited to 'src/mongo/shell')
-rw-r--r-- | src/mongo/shell/db.js | 6 | ||||
-rw-r--r-- | src/mongo/shell/session.js | 11 |
2 files changed, 0 insertions, 17 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js index 1a41c93969c..7a30fd09477 100644 --- a/src/mongo/shell/db.js +++ b/src/mongo/shell/db.js @@ -180,12 +180,6 @@ DB.prototype.runCommand = function(obj, extra, queryOptions) { } }; -DB.prototype.runCommandWithMetadata = function(commandArgs, metadata) { - const session = this.getSession(); - return session._getSessionAwareClient().runCommandWithMetadata( - session, this._name, metadata, commandArgs); -}; - DB.prototype._dbCommand = DB.prototype.runCommand; DB.prototype._dbReadCommand = DB.prototype.runReadCommand; diff --git a/src/mongo/shell/session.js b/src/mongo/shell/session.js index 8fc0e98f617..0e621122eaf 100644 --- a/src/mongo/shell/session.js +++ b/src/mongo/shell/session.js @@ -469,17 +469,6 @@ var { processCommandResponse(driverSession, client, res); return res; }; - - this.runCommandWithMetadata = function runCommandWithMetadata( - driverSession, dbName, metadata, cmdObj) { - cmdObj = this.prepareCommandRequest(driverSession, cmdObj); - - const res = runClientFunctionWithRetries( - driverSession, cmdObj, client.runCommandWithMetadata, [dbName, metadata, cmdObj]); - - processCommandResponse(driverSession, client, res); - return res; - }; } function TransactionOptions(rawOptions = {}) { |