summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/currentop_includes_connid.js
blob: a58bba4447988a5e074b63efa9f27d3a7b50897a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(function() {
"use strict";

let res = assert.commandWorked(db.runCommand({whatsmyuri: 1}));
const myUri = res.you;

res = assert.commandWorked(db.adminCommand({currentOp: 1, client: myUri}));
const threadName = res.inprog[0].desc;
const connectionId = res.inprog[0].connectionId;

assert.eq("conn" + connectionId, threadName, tojson(res));
})();