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
    • Labels:
    • Storage Execution

      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:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: