summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.cpp
diff options
context:
space:
mode:
authorTed Tuckman <ted.tuckman@mongodb.com>2018-10-09 15:11:00 -0400
committerTed Tuckman <ted.tuckman@mongodb.com>2018-10-10 15:32:32 -0400
commita6b69577d2576c857cbb971448e432ec4a50c08e (patch)
tree8c5a4cd339a2467da020a20fbdb189473f11b9f1 /src/mongo/db/curop.cpp
parent796d1d15226e546485d356f1c41d94e8d11281ca (diff)
downloadmongo-a6b69577d2576c857cbb971448e432ec4a50c08e.tar.gz
SERVER-37460 Add type to all currentOp documents
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r--src/mongo/db/curop.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp
index 361ca3220b2..c7768fb34fd 100644
--- a/src/mongo/db/curop.cpp
+++ b/src/mongo/db/curop.cpp
@@ -230,6 +230,8 @@ void CurOp::reportCurrentOpForClient(OperationContext* opCtx,
invariant(client);
OperationContext* clientOpCtx = client->getOperationContext();
+ infoBuilder->append("type", "op");
+
const std::string hostName = getHostNameCachedAndPort();
infoBuilder->append("host", hostName);