BSON::ObjectId.from_time does not respect time argument if :unique is true

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: bson-5.0.1
    • Component/s: BSON
    • None
    • None
    • Ruby Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Reported via GitHub: https://github.com/mongodb/bson-ruby/discussions/337

      If a new BSON::ObjectId is created via BSON::ObjectId.from_time, it should base the new ObjectId on the time argument that was given. However, if unique: true is specified, the time argument is effectively ignored (because the C implementation of next_object_id does not refer to its parameter at all.

              Assignee:
              Unassigned
              Reporter:
              Jamis Buck
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: