diff options
author | Benety Goh <benety@mongodb.com> | 2023-05-05 16:31:14 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-05 21:32:30 +0000 |
commit | 0417f5dae1f8d20caec7646982a49124c2b44c5f (patch) | |
tree | 1b2403be992f6df1741c508aa9c88648fa26aabf /src/mongo/db/op_observer/op_observer.h | |
parent | 07c79a03fbe63f5c9734f68d44513cc15bb5ed2a (diff) | |
download | mongo-0417f5dae1f8d20caec7646982a49124c2b44c5f.tar.gz |
SERVER-76563 move OpObserver rollback exception handling from inlined interface function to RollbackImpl
Diffstat (limited to 'src/mongo/db/op_observer/op_observer.h')
-rw-r--r-- | src/mongo/db/op_observer/op_observer.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mongo/db/op_observer/op_observer.h b/src/mongo/db/op_observer/op_observer.h index b073ae8aecd..a8ac0283dea 100644 --- a/src/mongo/db/op_observer/op_observer.h +++ b/src/mongo/db/op_observer/op_observer.h @@ -584,18 +584,9 @@ public: * * This method is only applicable to the "rollback to a stable timestamp" algorithm, and is not * called when using any other rollback algorithm i.e "rollback via refetch". - * - * This function will call the private virtual '_onReplicationRollback' method. Any exceptions - * thrown indicates rollback failure that may have led us to some inconsistent on-disk or memory - * state, so we crash instead. */ - void onReplicationRollback(OperationContext* opCtx, - const RollbackObserverInfo& rbInfo) noexcept { - try { - _onReplicationRollback(opCtx, rbInfo); - } catch (const DBException& ex) { - fassert(6050902, ex.toStatus()); - } + void onReplicationRollback(OperationContext* opCtx, const RollbackObserverInfo& rbInfo) { + _onReplicationRollback(opCtx, rbInfo); }; /** |