mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-29075 Add remaining client metadata to the currentOp output
This commit is contained in:
parent
5ab83cb6e3
commit
164d4720b9
@ -72,6 +72,9 @@
|
||||
|
||||
if (result.inprog.length === 1) {
|
||||
assert.eq(result.inprog[0].appName, "MongoDB Shell", tojson(result));
|
||||
assert.eq(result.inprog[0].clientMetadata.application.name,
|
||||
"MongoDB Shell",
|
||||
tojson(result));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user