summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer/op_observer_noop.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2023-05-05 20:06:56 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-06 01:19:21 +0000
commit7387430aa3cd99126167662be55c96c3c469500f (patch)
tree4b34eda06360123af3541097c39155710ac1e84c /src/mongo/db/op_observer/op_observer_noop.h
parent6ea7306bcad7accc3ef9bd8a0b5c9c531d455bc3 (diff)
downloadmongo-7387430aa3cd99126167662be55c96c3c469500f.tar.gz
SERVER-76563 remove OpObserver::_onReplicationRollback() indirection
Diffstat (limited to 'src/mongo/db/op_observer/op_observer_noop.h')
-rw-r--r--src/mongo/db/op_observer/op_observer_noop.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/op_observer/op_observer_noop.h b/src/mongo/db/op_observer/op_observer_noop.h
index 11e83891d01..83426b6fcb9 100644
--- a/src/mongo/db/op_observer/op_observer_noop.h
+++ b/src/mongo/db/op_observer/op_observer_noop.h
@@ -216,12 +216,10 @@ public:
const repl::OpTime& prepareOpTime) override {}
void onTransactionAbort(OperationContext* opCtx,
boost::optional<OplogSlot> abortOplogEntryOpTime) override{};
+ void onReplicationRollback(OperationContext* opCtx,
+ const RollbackObserverInfo& rbInfo) override {}
void onMajorityCommitPointUpdate(ServiceContext* service,
const repl::OpTime& newCommitPoint) override {}
-
-private:
- void _onReplicationRollback(OperationContext* opCtx,
- const RollbackObserverInfo& rbInfo) override {}
};
} // namespace mongo