Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-3553

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

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

      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 Unassigned
            Reporter:
            jamis.buck@mongodb.com Jamis Buck
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: