MCPcopy 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
1476def _after_fork() -> None:
1477 """Releases the ObjectID lock child."""
1478 if ObjectId._inc_lock.locked():
1479 ObjectId._inc_lock.release()
1480
1481
1482if hasattr(os, "register_at_fork"):

Callers

nothing calls this directly

Calls 2

lockedMethod · 0.80
releaseMethod · 0.80

Tested by

no test coverage detected