0
0
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:
Mark Benvenuto 2017-05-12 10:03:57 -04:00
parent 5ab83cb6e3
commit 164d4720b9
2 changed files with 6 additions and 0 deletions

View File

@ -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;
}

View File

@ -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