summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/currentop_includes_connid.js
blob: b9b9ceeeb904cc37c51799b92e3965c5a4bfb542 (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));
})();