summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rollback_impl.h
diff options
context:
space:
mode:
authorWilliam Schultz <william.schultz@mongodb.com>2018-01-25 17:37:52 -0500
committerWilliam Schultz <william.schultz@mongodb.com>2018-01-25 17:37:52 -0500
commit0ebed531c6506e8538858758a6af5b8eb9da7ed2 (patch)
treecfabef518d510a9ad80738d52d9a7bfd0bcd0452 /src/mongo/db/repl/rollback_impl.h
parenta917ca5b1691625d7a1e70e96672386bbf0a6243 (diff)
downloadmongo-0ebed531c6506e8538858758a6af5b8eb9da7ed2.tar.gz
Revert "SERVER-30818 Wait for all background index builds to complete before starting rollback to checkpoint"
This reverts commit 18eb990734653fc80f7d8c2916033e61ea7320e5.
Diffstat (limited to 'src/mongo/db/repl/rollback_impl.h')
-rw-r--r--src/mongo/db/repl/rollback_impl.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/mongo/db/repl/rollback_impl.h b/src/mongo/db/repl/rollback_impl.h
index c88899e70b0..b8a6b5b04cf 100644
--- a/src/mongo/db/repl/rollback_impl.h
+++ b/src/mongo/db/repl/rollback_impl.h
@@ -100,11 +100,6 @@ public:
virtual void onTransitionToRollback() noexcept {}
/**
- * Function called after all background index builds have completed.
- */
- virtual void onBgIndexesComplete() noexcept {}
-
- /**
* Function called after we find the common point.
*/
virtual void onCommonPointFound(Timestamp commonPoint) noexcept {}
@@ -174,16 +169,6 @@ private:
Status _transitionToRollback(OperationContext* opCtx);
/**
- * Waits for any in-progress background index builds to complete. We do this before beginning
- * the rollback process to prevent any issues surrounding index builds pausing/resuming around a
- * call to 'recoverToStableTimestamp'. It's not clear that an index build, resumed in this way,
- * that continues until completion, would be consistent with the collection data. Waiting for
- * all background index builds to complete is a conservative approach, to avoid any of these
- * potential issues.
- */
- Status _awaitBgIndexCompletion(OperationContext* opCtx);
-
- /**
* Recovers to the stable timestamp while holding the global exclusive lock.
*/
Status _recoverToStableTimestamp(OperationContext* opCtx);