Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1719

mongo-rust-driver - PR #928: Fix session cursor retype

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.1
    • Affects Version/s: None
    • Component/s: None

      mlokr has created PR #928: Fix session cursor retype in mongo-rust-driver

      Issue Text:
      Hello there,

      when using the transaction API, I encountered unconditional panics and also panic while dropping in `SessionCursor::with_type`. The problem occurs because the `.state` is moved into new cursor and subsequently, `.unwrap()` is called on it when marking it exhausted and also when checking for exhaustion. This is the minimal code change to fix this problem

            Assignee:
            isabel.atkinson@mongodb.com Isabel Atkinson
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: