Releases the locks in child process and resets the topologies in all MongoClients.
()
| 3054 | |
| 3055 | |
| 3056 | def _after_fork_child() -> None: |
| 3057 | """Releases the locks in child process and resets the |
| 3058 | topologies in all MongoClients. |
| 3059 | """ |
| 3060 | # Reinitialize locks |
| 3061 | _release_locks() |
| 3062 | |
| 3063 | # Perform cleanup in clients (i.e. get rid of topology) |
| 3064 | for _, client in AsyncMongoClient._clients.items(): |
| 3065 | client._after_fork() |
| 3066 | |
| 3067 | |
| 3068 | def _detect_external_db(entity: str) -> bool: |
nothing calls this directly
no test coverage detected