Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15119

Accept a named "writeConcern" option for bulk.execute

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: JavaScript, Shell
    • Labels:
      None
    • Storage Execution

      Currently this doesn't generate an error, or work as intended, since gle on the server ignores it, but we should be able to tell what the user intended and use it correctly.

      var bulk = ...
      ...
      bulk.execute({w:1}) // correct format
      bulk.execute({writeConcern:{w:1}}) // should work by unwrapping "writeConcern"
      

      This will also allow execute to have more named arguments in the future...

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: