Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-3848

Enhance new prepare transaction API to enforce post conditions

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.4, 3.7.3, WT3.1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage 2018-01-29, Storage 2018-02-12, Storage 2018-02-26

      There will be a constraint on using the new WT_SESSION::prepare_transaction API, which is that after it is called the only subsequent operations permitted are WT_SESSION::commit_transaction and WT_SESSION::rollback_transaction - we should enforce that by having any calls to other functions return ENOTSUP once prepare is called.

      Subsequent to the commit/rollback all operations are permitted again.

      We should enhance our Python test suite to check both correct and incorrect usage of the API.

            Assignee:
            vamsi.krishna@mongodb.com Vamsi Boyapati
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: