summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2017-05-12 10:03:57 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2017-05-12 10:03:57 -0400
commit164d4720b9d81ca5f9deea702b66438a6fa8072c (patch)
tree65dd8448340925df5c26857d8080231ad12b43d3 /src
parent5ab83cb6e3acaf435d0d792cf8b5360eac47ce2e (diff)
downloadmongo-164d4720b9d81ca5f9deea702b66438a6fa8072c.tar.gz
SERVER-29075 Add remaining client metadata to the currentOp output
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/commands/current_op.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/commands/current_op.cpp b/src/mongo/db/commands/current_op.cpp
index fd69d1c06a9..3a86aaabf31 100644
--- a/src/mongo/db/commands/current_op.cpp
+++ b/src/mongo/db/commands/current_op.cpp
@@ -150,6 +150,9 @@ public:
if (!appName.empty()) {
infoBuilder.append("appName", appName);
}
+
+ auto clientMetadataDocument = clientMetadata.get().getDocument();
+ infoBuilder.append("clientMetadata", clientMetadataDocument);
}
// Operation context specific information