Operation.addReadConcern encodes "empty" ReadConcern

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.1.0
    • Affects Version/s: None
    • Component/s: Core API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      ReadConcern is rarely nil and is instead usually a zero valued struct when created by a default client. The old code for addReadConcern used to check if the encoded result had a length of non-zero before adding it to the document. This check is gone and an empty document is encoded. This same check could be added back or a different check can be done to optimize performance where we don't need to marshal.

            Assignee:
            Divjot Arora (Inactive)
            Reporter:
            Eric Daniels
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: