summaryrefslogtreecommitdiff
path: root/src/mongo/util/fail_point.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/fail_point.h')
-rw-r--r--src/mongo/util/fail_point.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/util/fail_point.h b/src/mongo/util/fail_point.h
index fbabb169ffc..832d90349ef 100644
--- a/src/mongo/util/fail_point.h
+++ b/src/mongo/util/fail_point.h
@@ -78,8 +78,9 @@ public:
enum RetCode { fastOff = 0, slowOff, slowOn, userIgnored };
struct SyncConfig {
+ SyncConfig() {}
// Is this failpoint configured for failpoints synchronization.
- bool enabled;
+ bool enabled = false;
// Signals to emit when the failpoint is reached.
std::unordered_set<std::string> signals;
// Signals to wait for when the failpoint is reached.
@@ -146,8 +147,6 @@ public:
void sync() const;
- bool isSynced() const;
-
bool syncEnabled() const;
/**
@@ -215,6 +214,8 @@ private:
*/
void disableFailPoint();
+ bool isSynced() const;
+
/**
* slow path for #shouldFailOpenBlock
*