summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rollback_impl_test.cpp
diff options
context:
space:
mode:
authorclang-format 12.0.1 <>2023-02-10 04:44:29 -0800
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-11 08:00:01 +0000
commitf63255ee677ecae5896d6f35dd712ed60ae8c39a (patch)
tree97ffffa8d6f9e1a131aeb1ccc1d42f133f8407fd /src/mongo/db/repl/rollback_impl_test.cpp
parent375366e3f317d18717df24f861b09c4d2f8fb27f (diff)
downloadmongo-f63255ee677ecae5896d6f35dd712ed60ae8c39a.tar.gz
SERVER-72197 Run clang-format 12.0.1 on the codebase
Signed-off-by: Ryan Egesdahl <ryan.egesdahl@mongodb.com>
Diffstat (limited to 'src/mongo/db/repl/rollback_impl_test.cpp')
-rw-r--r--src/mongo/db/repl/rollback_impl_test.cpp35
1 files changed, 26 insertions, 9 deletions
diff --git a/src/mongo/db/repl/rollback_impl_test.cpp b/src/mongo/db/repl/rollback_impl_test.cpp
index b29c32aab3e..3b7cea56604 100644
--- a/src/mongo/db/repl/rollback_impl_test.cpp
+++ b/src/mongo/db/repl/rollback_impl_test.cpp
@@ -254,7 +254,9 @@ protected:
std::unique_ptr<RollbackImplForTest> _rollback;
bool _transitionedToRollback = false;
- std::function<void()> _onTransitionToRollbackFn = [this]() { _transitionedToRollback = true; };
+ std::function<void()> _onTransitionToRollbackFn = [this]() {
+ _transitionedToRollback = true;
+ };
bool _recoveredToStableTimestamp = false;
Timestamp _stableTimestamp;
@@ -265,10 +267,14 @@ protected:
};
bool _recoveredFromOplog = false;
- std::function<void()> _onRecoverFromOplogFn = [this]() { _recoveredFromOplog = true; };
+ std::function<void()> _onRecoverFromOplogFn = [this]() {
+ _recoveredFromOplog = true;
+ };
bool _incrementedRollbackID = false;
- std::function<void()> _onRollbackIDIncrementedFn = [this]() { _incrementedRollbackID = true; };
+ std::function<void()> _onRollbackIDIncrementedFn = [this]() {
+ _incrementedRollbackID = true;
+ };
bool _reconstructedPreparedTransactions = false;
std::function<void()> _onPreparedTransactionsReconstructedFn = [this]() {
@@ -277,18 +283,25 @@ protected:
Timestamp _commonPointFound;
std::function<void(Timestamp commonPoint)> _onCommonPointFoundFn =
- [this](Timestamp commonPoint) { _commonPointFound = commonPoint; };
+ [this](Timestamp commonPoint) {
+ _commonPointFound = commonPoint;
+ };
Timestamp _truncatePoint;
std::function<void(Timestamp truncatePoint)> _onSetOplogTruncateAfterPointFn =
- [this](Timestamp truncatePoint) { _truncatePoint = truncatePoint; };
+ [this](Timestamp truncatePoint) {
+ _truncatePoint = truncatePoint;
+ };
bool _triggeredOpObserver = false;
std::function<void(const OpObserver::RollbackObserverInfo& rbInfo)> _onRollbackOpObserverFn =
- [this](const OpObserver::RollbackObserverInfo& rbInfo) { _triggeredOpObserver = true; };
+ [this](const OpObserver::RollbackObserverInfo& rbInfo) {
+ _triggeredOpObserver = true;
+ };
std::function<void(UUID, NamespaceString)> _onRollbackFileWrittenForNamespaceFn =
- [this](UUID, NamespaceString) {};
+ [this](UUID, NamespaceString) {
+ };
std::unique_ptr<Listener> _listener;
@@ -848,7 +861,9 @@ DEATH_TEST_F(RollbackImplTest,
_storageInterface->setStableTimestamp(nullptr, Timestamp(1, 1));
// Called before aborting prepared transactions.
- _onRollbackIDIncrementedFn = [this]() { _incrementedRollbackID = true; };
+ _onRollbackIDIncrementedFn = [this]() {
+ _incrementedRollbackID = true;
+ };
_onRecoverToStableTimestampFn = [this](Timestamp stableTimestamp) {
_recoveredToStableTimestamp = true;
@@ -856,7 +871,9 @@ DEATH_TEST_F(RollbackImplTest,
};
// Called after reconstructing prepared transactions. We should not be getting here.
- _onPreparedTransactionsReconstructedFn = [this]() { ASSERT(false); };
+ _onPreparedTransactionsReconstructedFn = [this]() {
+ ASSERT(false);
+ };
// We expect to crash when we hit the exception.
_rollback->runRollback(_opCtx.get()).ignore();