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_failpoint_helpers.h | |
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_failpoint_helpers.h')
-rw-r--r-- | src/mongo/db/curop_failpoint_helpers.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/curop_failpoint_helpers.h b/src/mongo/db/curop_failpoint_helpers.h index a88bbc67e30..4a45d3a5cfa 100644 --- a/src/mongo/db/curop_failpoint_helpers.h +++ b/src/mongo/db/curop_failpoint_helpers.h @@ -39,7 +39,8 @@ public: * Helper function which sets the 'msg' field of the opCtx's CurOp to the specified string, and * returns the original value of the field. */ - static std::string updateCurOpMsg(OperationContext* opCtx, const std::string& newMsg); + static std::string updateCurOpFailPointMsg(OperationContext* opCtx, + const std::string& failpointMsg); /** * This helper function works much like FailPoint::pauseWhileSet(opCtx), but additionally @@ -59,7 +60,7 @@ public: */ static void waitWhileFailPointEnabled(FailPoint* failPoint, OperationContext* opCtx, - const std::string& curOpMsg, + const std::string& failpointMsg, const std::function<void()>& whileWaiting = nullptr, bool checkForInterrupt = false, boost::optional<NamespaceString> nss = boost::none); |