diff options
author | Ruoxin Xu <ruoxin.xu@mongodb.com> | 2020-03-06 23:32:52 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-19 12:06:50 +0000 |
commit | c00b8e8cd6935c2816ae7173359cd97818abd590 (patch) | |
tree | 60bd3071ce222fd1cc7d9fc99ab6fa28455fad64 /src/mongo/db/curop.cpp | |
parent | fc50384c81d14e9db5c76385006b94f3eaa5e52b (diff) | |
download | mongo-c00b8e8cd6935c2816ae7173359cd97818abd590.tar.gz |
SERVER-43614 Added "_failPointMessage" field in CurOp for Failpoints used only.
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r-- | src/mongo/db/curop.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp index 1c20a27daea..09c0a673246 100644 --- a/src/mongo/db/curop.cpp +++ b/src/mongo/db/curop.cpp @@ -641,6 +641,10 @@ void CurOp::reportState(OperationContext* opCtx, BSONObjBuilder* builder, bool t } } + if (!_failPointMessage.empty()) { + builder->append("failpointMsg", _failPointMessage); + } + if (auto n = _debug.additiveMetrics.prepareReadConflicts.load(); n > 0) { builder->append("prepareReadConflicts", n); } |