Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2583

Add BsonWriter implementation that appends extra BSON elements to the top-level document

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None
    • Minor Change

      The OP_MSG specification requires that global arguments like $db and $readPreference are appended to the command document. So as not to require the core driver to modify command documents that it doesn't own, or clone those documents into a new BsonDocument, create a new BsonWriter implementation that can append a list of BSON elements to the end of the top-level document. This BsonWriter will be used by the OP_MSG serializer to efficiently encode the command document to the wire.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: