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-02 23:28:34 +0000 |
commit | 80f81b001abbc7aa585b26ef1461225ecad90b51 (patch) | |
tree | 0519d413dd8f0d5af3dae002d08c3dffb4789ed5 /src | |
parent | 79406a208468bb9a255f06de2574145d20560f51 (diff) | |
download | mongo-80f81b001abbc7aa585b26ef1461225ecad90b51.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 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())); } |