Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11540

Docs for SERVER-33218: Implement shell API for transactions

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.4
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      Documentation Request Summary:

      We've introduced three new shell helpers: startTransaction(), commitTransaction(), and abortTransaction(). All three require that a Session has been started and must be called on it.

      startTransaction can take optional transaction options (readConcern and writeConcern). These can only be set at the beginning of a transaction and will be used for all subsequent statements in a transaction.

      calling commitTransaction allows you to see your changes outside of the transaction.

      calling abortTransaction terminates the transaction and none of the changes will be saved.

      Please let me know if anything is unclear! I committed a test with the server ticket so that should make things easier to understand.

            kay.kim@mongodb.com Kay Kim (Inactive)
            kay.kim@mongodb.com Kay Kim (Inactive)
            0 Vote for this issue
            3 Start watching this issue

              6 years, 6 weeks, 3 days ago