summaryrefslogtreecommitdiff
path: root/src/mongo/db/snapshot_window_util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/snapshot_window_util.cpp')
-rw-r--r--src/mongo/db/snapshot_window_util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/snapshot_window_util.cpp b/src/mongo/db/snapshot_window_util.cpp
index 75d59c4abbd..05a46b42e13 100644
--- a/src/mongo/db/snapshot_window_util.cpp
+++ b/src/mongo/db/snapshot_window_util.cpp
@@ -88,7 +88,7 @@ void _decreaseTargetSnapshotWindowSize(WithLock lock, OperationContext* opCtx) {
} // namespace
void increaseTargetSnapshotWindowSize(OperationContext* opCtx) {
- if (MONGO_FAIL_POINT(preventDynamicSnapshotHistoryWindowTargetAdjustments)) {
+ if (MONGO_unlikely(preventDynamicSnapshotHistoryWindowTargetAdjustments.shouldFail())) {
return;
}
@@ -146,7 +146,7 @@ void increaseTargetSnapshotWindowSize(OperationContext* opCtx) {
}
void decreaseTargetSnapshotWindowSize(OperationContext* opCtx) {
- if (MONGO_FAIL_POINT(preventDynamicSnapshotHistoryWindowTargetAdjustments)) {
+ if (MONGO_unlikely(preventDynamicSnapshotHistoryWindowTargetAdjustments.shouldFail())) {
return;
}