Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-69823

Make RecoveryUnit::Change commit and rollback interfaces noexcept

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • Execution Team 2024-10-14, Execution Team 2024-10-28, Execution Team 2024-11-11, Execution Team 2024-11-25

      They are currently de-facto noexcept as std::terminate is called if commit or rollback throw. But we should make this explicit for users implementing this interface by changing the interface to use the noexcept keyword.

       

      After SERVER-68256 we have four implementations of iterating and invoking callbacks:

      • _executeCommitHandlers()
      • _executeRollbackHandlers()
      • _executeOpenSnapshotHandlers()
      • _executeCloseSnapshotHandlers()

      We should look into providing an abstraction for this.

            Assignee:
            matt.kneiser@mongodb.com Matt Kneiser
            Reporter:
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: