WriteConcern should allow unset options

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: 0.1.5
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: