Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-178

WriteConcern should allow unset options

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 0.1.5
    • Component/s: None
    • None

      As I mentioned in this comment within PHPC-177's PR:

      Ultimately, I think we need support for null arguments to WriteConcern or to simply take an $options array and be done with it. One argument is that we're locking ourselves into having an argument for fsync, which we already know is deprecated.

      If CDRIVER-580 is merged, that means the write concern struct will support unset values for j and fsync, as it currently does for w. Our constructor always attempts to assign w, and our required parameters means that one cannot specify j without first specifying w.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: