Uploaded image for project: 'PHP Legacy Driver'
  1. PHP Legacy Driver
  2. PHP-638

Read preference get/set methods are not consistent

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.3.3
    • Component/s: pecl-mongo
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • # Replies:
      12
    • Last comment by Customer:
      true

      Description

      See: https://github.com/doctrine/mongodb/commit/3ef26207cfd3886ef115c454ee2142a63a334dc0

      The driver returns numeric types in getReadPreference() instead of the string constants accepted by setReadPreference(). This is likely a bug.

      The format for tag sets returned by getReadPreference() differs from that accepted by setReadPreference(). This likely isn't a bug.

      Those are two inconsistencies, but I believe only the first is a bug worth fixing.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since reply:
                  4 years, 32 weeks, 6 days ago
                  Date of 1st Reply: