Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-315

mapReduce verbose option should be unset by default

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0
    • Affects Version/s: 1.2.0
    • Component/s: None
    • None

      I originally used true as the default for mapReduce command's verbose option, based on the MongoDB manual documentation. In hindsight, there appears to be an error in the documentation (see: DOCS-11265). Based on the logic in mr.cpp it appears that timing info is excluded from the command result unless verbose is explicitly defined as true (i.e. the default is unset and effectively false).

      This is related to PHPLIB-309, where my pedantry for specifying default values according to the server docs result in a bug for PHPLIB and mongos deployments. Let's just remove such defaults entirely and allow the server to enforce these (all the more as there isn't a mapReduce spec saying that the driver should enforce a default value).

            Assignee:
            katherine.walker@mongodb.com Katherine Walker (Inactive)
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: