Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mongodb/mongo-python-driver
/ _after_fork
Function
_after_fork
bson/__init__.py:1476–1479 ·
view source on GitHub ↗
Releases the ObjectID lock child.
()
Source
from the content-addressed store, hash-verified
1474
1475
1476
def
_after_fork() -> None:
1477
""
"Releases the ObjectID lock child."
""
1478
if
ObjectId._inc_lock.locked():
1479
ObjectId._inc_lock.release()
1480
1481
1482
if
hasattr(os,
"register_at_fork"
):
Callers
nothing calls this directly
Calls
2
locked
Method · 0.80
release
Method · 0.80
Tested by
no test coverage detected