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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.8.2, 1.9.0
    • Affects Version/s: 1.8.0
    • Component/s: Internal Client
    • None
    • Minor Change
    • ALL

      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

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            qwak Piotr Beling
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: