summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.cpp
diff options
context:
space:
mode:
authorGabriel Russell <gabriel.russell@mongodb.com>2020-06-02 14:42:02 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-02 23:28:34 +0000
commit80f81b001abbc7aa585b26ef1461225ecad90b51 (patch)
tree0519d413dd8f0d5af3dae002d08c3dffb4789ed5 /src/mongo/db/curop.cpp
parent79406a208468bb9a255f06de2574145d20560f51 (diff)
downloadmongo-80f81b001abbc7aa585b26ef1461225ecad90b51.tar.gz
SERVER-48495 fix up the errName filed of the slow query log
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r--src/mongo/db/curop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp
index d437ebd87e8..9aabde567ea 100644
--- a/src/mongo/db/curop.cpp
+++ b/src/mongo/db/curop.cpp
@@ -968,7 +968,7 @@ void OpDebug::report(OperationContext* opCtx,
if (!errInfo.reason().empty()) {
pAttrs->add("errMsg", redact(errInfo.reason()));
}
- pAttrs->add("errName", errInfo.code());
+ pAttrs->addDeepCopy("errName", errInfo.codeString());
pAttrs->add("errCode", static_cast<int>(errInfo.code()));
}