[CDRIVER-2090] Don't call getpid if we plan to overwrite result with taskid during ObjectId generation Created: 17/Mar/17  Updated: 03/May/17  Resolved: 17/Mar/17

Status: Closed
Project: C Driver
Component/s: libbson
Affects Version/s: None
Fix Version/s: 1.7.0

Type: Bug Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

_bson_context_init always calls getpid to generate an OID, then if possible and configured to do so, overwrites the result with the Linux thread "task id".



 Comments   
Comment by Githook User [ 17/Mar/17 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-2090 Only call getpid when needed
Branch: master
https://github.com/mongodb/libbson/commit/76adde78b2593b34bcbbe1a02cabd455ee96c338

Generated at Wed Feb 07 21:14:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.