diff options
author | David Storch <david.storch@mongodb.com> | 2022-08-22 14:39:54 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-22 16:07:53 +0000 |
commit | b324e20468ca7d2c3afd3cfa57f1ba38c77a3655 (patch) | |
tree | 0d4f172ade1df5416bb2475cc60f97e948928724 /src/mongo/shell | |
parent | c7da70b78f234eab15f1188a887fc3139d65f5ac (diff) | |
download | mongo-b324e20468ca7d2c3afd3cfa57f1ba38c77a3655.tar.gz |
SERVER-67127 Delete 'db.currentOpLegacy()' helper
Diffstat (limited to 'src/mongo/shell')
-rw-r--r-- | src/mongo/shell/db.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js index 0d55b6baa45..3f92ed285fc 100644 --- a/src/mongo/shell/db.js +++ b/src/mongo/shell/db.js @@ -801,13 +801,6 @@ DB.prototype.hello = function() { }; DB.prototype.currentOp = function(arg) { - // TODO CLOUDP-89361: The shell is connected to the Atlas Proxy, which currently does not - // support the $currentOp aggregation stage. Remove the legacy server command path once the - // proxy can support $currentOp. - if (this.serverStatus().hasOwnProperty("atlasVersion")) { - return this.currentOpLegacy(arg); - } - try { const results = this.currentOpCursor(arg).toArray(); let res = {"inprog": results.length > 0 ? results : [], "ok": 1}; @@ -822,21 +815,6 @@ DB.prototype.currentOp = function(arg) { return {"ok": 0, "code": e.code, "errmsg": "Error executing $currentOp: " + e.message}; } }; -DB.prototype.currentOP = DB.prototype.currentOp; - -DB.prototype.currentOpLegacy = function(arg) { - let q = {}; - if (arg) { - if (typeof (arg) == "object") - Object.extend(q, arg); - else if (arg) - q["$all"] = true; - } - - var commandObj = {"currentOp": 1}; - Object.extend(commandObj, q); - return this.adminCommand(commandObj); -}; DB.prototype.currentOpCursor = function(arg) { let q = {}; |