diff options
Diffstat (limited to 'jstests/noPassthrough/currentop_query.js')
-rw-r--r-- | jstests/noPassthrough/currentop_query.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/noPassthrough/currentop_query.js b/jstests/noPassthrough/currentop_query.js index ebdffb9c22c..d4d7aab81c4 100644 --- a/jstests/noPassthrough/currentop_query.js +++ b/jstests/noPassthrough/currentop_query.js @@ -636,7 +636,8 @@ function runTests({conn, readMode, currentOp, truncatedOps, localOps}) { } function currentOpCommand(inputDB, filter, truncatedOps, localOps) { - return inputDB.currentOp(Object.assign(filter, {$truncateOps: truncatedOps})); + return inputDB.getSiblingDB("admin").runCommand( + Object.assign({currentOp: true, $truncateOps: truncatedOps}, filter)); } function currentOpAgg(inputDB, filter, truncatedOps, localOps) { |