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

bson_oid_gen() is not thread-safe

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • TBD
    • 0.5.2, 0.6
    • None
    • *

    Description

      bson_oid_gen() is not thread-safe.
      It uses static 'incr' integer variable to increment. When enough threads accessing the method, the returned oid will be the same as returned just previously.

      Attachments

        Activity

          People

            gjmurakami Gary Murakami
            pawel Pawel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: