Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-138

insert returns -1 code despite there being no error.

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 0.4
    • None
    • Ubuntu 12.04 64 bit

    Description

      I call mongo_insert with vaild parameters and the data is inserted into the database, however it returns -1, and prompts to look at lasterrstr, which is empty. I traced it to mongo_check_last_error which is called if you have a write_concern. Line 770 mongo.c call bson_find looking for err or $err, in the keys of the response. It isn't found however the last line of bson_find returns something.

      Attachments

        Activity

          People

            kbanker Kyle Banker
            mark.marsella Mark Marsella
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: