summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog_applier_impl_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/oplog_applier_impl_test.cpp')
-rw-r--r--src/mongo/db/repl/oplog_applier_impl_test.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/mongo/db/repl/oplog_applier_impl_test.cpp b/src/mongo/db/repl/oplog_applier_impl_test.cpp
index ed68d116056..3e62bacdb8e 100644
--- a/src/mongo/db/repl/oplog_applier_impl_test.cpp
+++ b/src/mongo/db/repl/oplog_applier_impl_test.cpp
@@ -471,7 +471,9 @@ TEST_F(OplogApplierImplTest, applyOplogEntryToRecordChangeStreamPreImages) {
auto op = makeOplogEntry(
[opCtx = _opCtx.get()] {
WriteUnitOfWork wuow{opCtx};
- ScopeGuard guard{[&wuow] { wuow.commit(); }};
+ ScopeGuard guard{[&wuow] {
+ wuow.commit();
+ }};
return repl::getNextOpTime(opCtx);
}(),
testCase.opType,
@@ -688,7 +690,9 @@ TEST_F(OplogApplierImplTest, RenameCollectionCommandMultitenant) {
// createCollection uses an actual opTime, so we must generate an actually opTime in the future.
auto opTime = [opCtx = _opCtx.get()] {
WriteUnitOfWork wuow{opCtx};
- ScopeGuard guard{[&wuow] { wuow.commit(); }};
+ ScopeGuard guard{[&wuow] {
+ wuow.commit();
+ }};
return repl::getNextOpTime(opCtx);
}();
auto op = makeCommandOplogEntry(opTime, sourceNss, oRename, {});
@@ -716,7 +720,9 @@ TEST_F(OplogApplierImplTest, RenameCollectionCommandMultitenantRequireTenantIDFa
// createCollection uses an actual opTime, so we must generate an actually opTime in the future.
auto opTime = [opCtx = _opCtx.get()] {
WriteUnitOfWork wuow{opCtx};
- ScopeGuard guard{[&wuow] { wuow.commit(); }};
+ ScopeGuard guard{[&wuow] {
+ wuow.commit();
+ }};
return repl::getNextOpTime(opCtx);
}();
auto op = makeCommandOplogEntry(opTime, sourceNss, oRename, {});
@@ -749,7 +755,9 @@ TEST_F(OplogApplierImplTest, RenameCollectionCommandMultitenantAcrossTenantsRequ
// createCollection uses an actual opTime, so we must generate an actually opTime in the future.
auto opTime = [opCtx = _opCtx.get()] {
WriteUnitOfWork wuow{opCtx};
- ScopeGuard guard{[&wuow] { wuow.commit(); }};
+ ScopeGuard guard{[&wuow] {
+ wuow.commit();
+ }};
return repl::getNextOpTime(opCtx);
}();
auto op = makeCommandOplogEntry(opTime, sourceNss, oRename, {});