summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rs_rollback.h
diff options
context:
space:
mode:
authorKyle Suarez <kyle.suarez@mongodb.com>2018-02-28 09:37:40 -0500
committerKyle Suarez <kyle.suarez@mongodb.com>2018-02-28 09:37:40 -0500
commit3ac67d8c605b483398863657abcdffac26aae85e (patch)
tree3ff9766796fd32e4a7d6f8fe2e39bbc97a6262d8 /src/mongo/db/repl/rs_rollback.h
parenta0173c12306a457d3b653daea77966c6748e202a (diff)
downloadmongo-3ac67d8c605b483398863657abcdffac26aae85e.tar.gz
SERVER-32588 create parameter to force rollback via refetch
Set the forceRollbackViaRefetch parameter to always use the rollback via refetch algorithm during rollback, even if the storage engine supports rollback via recover to stable timestamp.
Diffstat (limited to 'src/mongo/db/repl/rs_rollback.h')
-rw-r--r--src/mongo/db/repl/rs_rollback.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/repl/rs_rollback.h b/src/mongo/db/repl/rs_rollback.h
index fade3074331..4e56b45e038 100644
--- a/src/mongo/db/repl/rs_rollback.h
+++ b/src/mongo/db/repl/rs_rollback.h
@@ -38,9 +38,10 @@
#include "mongo/util/uuid.h"
/**
- * This rollback algorithm requires featureCompatibilityVersion 3.6.
+ * This rollback algorithm is used when the storage engine does not support recovering to a stable
+ * timestamp, or if the forceRollbackViaRefetch parameter is set to true.
*
- * Rollback Overview:
+ * Rollback via Refetch Overview:
*
* Rollback occurs when a node's oplog diverges from its sync source's oplog and needs to regain
* consistency with the sync source's oplog.
@@ -74,7 +75,7 @@
* R : a b c d e f g -> a b c d q r s t u v w x z
* S : a b c d q r s t u v w x z
*
- * Rollback Algorithm:
+ * Rollback via Refetch Algorithm:
*
* We will continue to use the notation of R as the node whose oplog is inconsistent with
* its sync source and S as the sync source of R. We will also represent the common point