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

No longer require `gethostname` to generate ObjectIDs

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: libbson
    • Labels:
      None

      Description

      I noticed while making static builds of libbson for libmongocrypt that we have a dependency in libbson for ws_32.lib on windows, so it can provide gethostname. As I suspected, this was being used for ObjectId generation. The recently written ObjectId specification no longer requires a hostname, so this can be dropped from the libbson implementation. I think it would make the library even more portable.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              matt.broadstone Matt Broadstone
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: