bson_oid_gen() is not thread-safe

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • TBD
    • Affects Version/s: 0.5.2, 0.6
    • Component/s: None
    • Environment:
      *
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Gary Murakami (Inactive)
            Reporter:
            Pawel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: