summaryrefslogtreecommitdiff
path: root/src
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-03 01:05:08 +0000
commit9f86bbafc8bc0089afae84795757b94cab77f9ce (patch)
tree64af079ebe9c28740fe7a78af232f7ebaca3b2b0 /src
parent41dac937f818a5d10977347cae5884bac4a10a74 (diff)
downloadmongo-9f86bbafc8bc0089afae84795757b94cab77f9ce.tar.gz
SERVER-48495 fix up the errName filed of the slow query log
Diffstat (limited to 'src')
-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 453d0f115e6..13881fb5596 100644
--- a/src/mongo/db/curop.cpp
+++ b/src/mongo/db/curop.cpp
@@ -966,7 +966,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()));
}