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

Reference to "WTagSet" when configuring write concern

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: CRUD
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      This stems from an issue with the official docs, but 'tag sets' are a read preference idea whereas the string variant of w (excluding "majority") on write concern refers to a write tag or custom write concern mode. So the function on writeconcern.Option should be something like WTag(tag string) or WCustom(tag string).

      I believe the docs team is updating the write concern page, so this fix could be deferred to use whatever terminology they decide upon.

      Deprecating the old WTagSet and omitting it from the documentation may have to be a part of this fix.

            Assignee:
            Unassigned Unassigned
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: