Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1733

Parse and expose all four lastWrite fields

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      We're looking into writing a custom read preference/ServerSelector for our mongo proxy, based on lastWrite.majorityOpTime (basically, we'd like to treat "afterClusterTime" more like read preference, and only select a server if we know it can satisfy this read concern). Currently, the driver only parses and exposes lastWrite.lastWriteDate (as description.Server.LastWriteTime). It'd be great if majorityOpTime were also added to description.Server (as e.g. MajorityOpTime primitive.Timestamp). And, at that point we may as well expose the other two fields (opTime and majorityWriteDate).

      Happy to provide a patch if this seems reasonable!

            Assignee:
            Unassigned Unassigned
            Reporter:
            bartle David Bartley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: