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

Add WiredTigerSessionCache methods for waiting until prepared

    • 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

      New WiredTigerSessionCache::waitUntilPreparedUnitOfWorkCommitsOrAborts and WiredTigerSessionCache::notifyPreparedUnitOfWorkHasCommittedOrAborted methods:

      /**
       * Block until any prepared transaction has either committed or aborted.
       * Can be interrupted.
       */
      WiredTigerSessionCache::waitUntilUnpreparedUnitOfWorkCommitsOrAborts(OperationContext* opCtx);
      
      /**
       * Notify that a prepared transaction has either committed or aborted.
       */
      WiredTigerSessionCache::notifyPreparedUnitOfWorkHasCommittedOrAborted(OperationContext* opCtx);
      

      These use a condvar/mutex and OperationContext::waitForConditionOrInterrupt, so the wait is interruptible.

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

              Created:
              Updated:
              Resolved: