Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCS-8007: Document currentOp command #2852

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions source/includes/currentOp-output-example.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
.. code-block:: javascript

{
"inprog": [
{
"desc" : <string>,
"threadId" : <string>,
"connectionId" : <number>,
"client" : <string>,
"appName" : <string>,
"opid" : <number>,
"active" : <boolean>,
"secs_running" : <NumberLong()>,
"microsecs_running" : <number>,
"op" : <string>,
"ns" : <string>,
"query" : <document>,
"insert" : <document>,
"planSummary": <string>,
"client" : <string>,
"appName" : <string>,
"msg": <string>,
"progress" : {
"done" : <number>,
"total" : <number>
},
"killPending" : <boolean>,
"numYields" : <number>,
"locks" : {
"Global" : <string>,
"MMAPV1Journal" : <string>,
"Database" : <string>,
"Collection" : <string>,
"Metadata" : <string>,
"oplog" : <string>
},
"waitingForLock" : <boolean>,
"lockStats" : {
"Global": {
"acquireCount": {
"r": <NumberLong>,
"w": <NumberLong>,
"R": <NumberLong>,
"W": <NumberLong>
},
"acquireWaitCount": {
"r": <NumberLong>,
"w": <NumberLong>,
"R": <NumberLong>,
"W": <NumberLong>
},
"timeAcquiringMicros" : {
"r" : NumberLong(0),
"w" : NumberLong(0),
"R" : NumberLong(0),
"W" : NumberLong(0)
},
"deadlockCount" : {
"r" : NumberLong(0),
"w" : NumberLong(0),
"R" : NumberLong(0),
"W" : NumberLong(0)
}
},
"MMAPV1Journal": {
...
},
"Database" : {
...
},
...
}
},
...
],
"fsyncLock": <boolean>,
"info": <string>
}
5 changes: 3 additions & 2 deletions source/includes/fact-diagnostic-info.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
:method:`db.currentOp()` and the
|operation| and the
:doc:`database profiler</reference/database-profiler>` report the same
basic diagnostic information for all CRUD operations, including the
following.
following:


- :dbcommand:`aggregate`
- :dbcommand:`count`
Expand Down
4 changes: 4 additions & 0 deletions source/includes/ref-toc-command-administration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ name: ":dbcommand:`killOp`"
file: /reference/command/killOp
description: "Terminates an operation as specified by the operation ID."
---
name: ":dbcommand:`currentOp`"
file: /reference/command/currentOp
description: "Returns a document that contains information on in-progress operations for the database instance."
---
name: ":dbcommand:`setFeatureCompatibilityVersion`"
file: /reference/command/setFeatureCompatibilityVersion
description: "Enables or disables MongoDB 3.4 features that persist data that are backwards-incompatible with MongoDB 3.2."
Expand Down
Loading