summaryrefslogtreecommitdiff
path: root/src/mongo/util/fail_point_service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/fail_point_service.cpp')
-rw-r--r--src/mongo/util/fail_point_service.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/fail_point_service.cpp b/src/mongo/util/fail_point_service.cpp
index f2ceb8bc42f..eb0f5df6cb7 100644
--- a/src/mongo/util/fail_point_service.cpp
+++ b/src/mongo/util/fail_point_service.cpp
@@ -62,7 +62,7 @@ FailPointRegistry* getGlobalFailPointRegistry() {
return _fpRegistry.get();
}
-void syncNow(const BSONObj& cmdObj) {
+void syncNow(OperationContext* opCtx, const BSONObj& cmdObj) {
FailPoint fp;
FailPoint::Mode mode;
@@ -74,7 +74,7 @@ void syncNow(const BSONObj& cmdObj) {
fp.setMode(mode, val, data, syncConfig);
warning() << "failpoint: 'now' set to: " << fp.toBSON();
- MONGO_FAIL_POINT_SYNC(fp);
+ MONGO_FAIL_POINT_SYNC(opCtx, fp);
warning() << "failpoint: 'now' synced";
}