diff options
author | Ted Tuckman <ted.tuckman@mongodb.com> | 2018-10-09 15:11:00 -0400 |
---|---|---|
committer | Ted Tuckman <ted.tuckman@mongodb.com> | 2018-10-10 15:32:32 -0400 |
commit | a6b69577d2576c857cbb971448e432ec4a50c08e (patch) | |
tree | 8c5a4cd339a2467da020a20fbdb189473f11b9f1 /src/mongo/db/curop.cpp | |
parent | 796d1d15226e546485d356f1c41d94e8d11281ca (diff) | |
download | mongo-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.cpp | 2 |
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); |