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

Add prepareUnitOfWork method to RecoveryUnit

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.4
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • Storage NYC 2018-03-26, Storage NYC 2018-03-12

      Add prepareUnitOfWork method to RecoveryUnit:
      /**
       * Must be called after beginUnitOfWork and before calling either abortUnitOfWork or
       * commitUnitOfWork. Transitions the current transaction (unit of work) to the
       * "prepared" state. Must be overridden by storage engines that support prepared
       * transactions.
       */
      virtual void RecoveryUnit::prepareUnitOfWork(Timestamp timestamp) {
      	uasserted(ErrorCodes::PreparedTransactionsNotSupported,
                       "This storage engine does not support prepared transactions");
      }
      

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: