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

C++ client 1.8 driver has unusable mapreduce method (with wrong signature)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.8.2, 1.9.0
    • Component/s: Internal Client
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Operating System:
      ALL

      Description

      In dbclient.h line 554 is method:
      BSONObj mapreduce(const string &ns, const string &jsmapf, const string &jsreducef, BSONObj query = BSONObj(), const string& output = "");
      note that output (last) parameter is string and has "" default value.
      If try to call this method with default ("") value I have error: 'out' has to be a string or an object

      I have no idea how I could use this method. Due to documentation:
      http://www.mongodb.org/display/DOCS/MapReduce#MapReduce-Outputoptions
      output should be an object.

      I download driver from page:
      http://dl.mongodb.org/dl/cxx-driver
      cxx-driver/mongodb-linux-x86_64-v1.8-latest.tgz 2011-04-04 09:22:58 6374730

        Attachments

          Activity

            People

            Assignee:
            redbeard0531 Mathias Stearn
            Reporter:
            qwak Piotr Beling
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: