Add WiredTigerSessionCache methods for waiting until prepared

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: