diff options
author | Gabriel Russell <gabriel.russell@mongodb.com> | 2020-06-02 14:42:02 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-03 01:05:08 +0000 |
commit | 9f86bbafc8bc0089afae84795757b94cab77f9ce (patch) | |
tree | 64af079ebe9c28740fe7a78af232f7ebaca3b2b0 /src | |
parent | 41dac937f818a5d10977347cae5884bac4a10a74 (diff) | |
download | mongo-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.cpp | 2 |
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())); } |