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

Correct reference guide description of cursor reset in transactions

    • Type: Icon: Documentation Documentation
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.0.0, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Summary

      The Cursor operations page in the reference guide says:

      Cursor positions do not survive transactions: cursors that are open during WT_SESSION::begin_transaction, WT_SESSION::commit_transaction or WT_SESSION::rollback_transaction will lose their position as if WT_CURSOR::reset was called.

      This is incorrect.  In the code, we reset cursors in WT_SESSION::rollback_transaction and in when WT_SESSION::commit_transaction fails. Successful calls to WT_SESSION::begin_transaction and WT_SESSION::commit_transaction leave a session's cursors positioned.  

      We should fix this statement and do a search through the rest of the documentation to see if there are similar statements elsewhere that need to be corrected.

            Assignee:
            keith.smith@mongodb.com Keith Smith
            Reporter:
            keith.smith@mongodb.com Keith Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: