Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1151

Add support for snapshot: true in startSession()

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0
    • Affects Version/s: None
    • Component/s: Shell API
    • Labels:
      None
    • 2
    • Needed
    • Hide

      The Mongo.prototype.startSession() method now accepts a boolean snapshot option for enabling snapshot reads on 5.0+ servers.

      Show
      The Mongo.prototype.startSession() method now accepts a boolean snapshot option for enabling snapshot reads on 5.0+ servers.
    • Iteration Xochimilco

      Our Mongo.prototype.startSession() method does not provide a way to pass through the snapshot option. We should add one.

      (This is also a good opportunity to get rid of the odd Object.assign() calls we’re doing in that method and properly type driverOptions as ClientSessionOptions.)

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: