Skip to content

Commit d45dbd1

Browse files
DOCSP-20525 Add Admin example for currentOp and killOp (#238)
* DOCSP-20525 Add Admin example for currentOp and killOp * DOCSP-20525 fix for broken link
1 parent 60ee775 commit d45dbd1

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

source/admin/determine-query-status.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ Determine Status of {+data-lake-short+} Queries
1414

1515
You can determine the status of a running query using
1616
:manual:`$currentOp </reference/operator/aggregation/currentOp/>`
17-
(aggregation). To run :manual:`$currentOp
18-
</reference/operator/aggregation/currentOp/index.html#pipe._S_currentOp>`, use
19-
the :manual:`db.aggregate
17+
(aggregation). To run ``$currentOp``, use the :manual:`db.aggregate
2018
</reference/method/db.aggregate/#db.aggregate>` helper.
19+
20+
.. note::
21+
22+
If you are an Admin user, you can view all queries using the
23+
:pipeline:`$currentOp` ``allUsers`` option.
24+
2125
:manual:`$currentOp </reference/operator/aggregation/currentOp/>` must
2226
be run against the ``admin`` database.
2327

source/admin/terminate-running-query.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ You can terminate long-running queries using the :manual:`killOp
2020
</reference/bson-types/#objectid>`.
2121
- The ``comment`` parameter is not supported.
2222

23-
Only the user who issued the query can terminate the query. To run
24-
this command, use :manual:`db.runCommand()
25-
</reference/method/db.runCommand>`. You must run :manual:`killOp
26-
</reference/command/killOp/>` against the ``admin`` database.
23+
If you are an Admin user, you can kill any query on a {+dl+}. The user
24+
who issued the query can also terminate the query. To run this command,
25+
use :manual:`db.runCommand() </reference/method/db.runCommand>`. You
26+
must run :manual:`killOp </reference/command/killOp/>` against the
27+
``admin`` database.
2728

2829
.. _adl-killop-syntax:
2930

0 commit comments

Comments
 (0)