Skip to content

Commit 5ac2627

Browse files
authored
PYTHON-5155 Use dochub link for fork warning (mongodb#2173)
1 parent 9d5d4fa commit 5ac2627

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

doc/changelog.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ PyMongo 4.9 brings a number of improvements including:
199199
unction-as-a-service (FaaS) like AWS Lambda, Google Cloud Functions, and Microsoft Azure Functions.
200200
On some FaaS systems, there is a ``fork()`` operation at function
201201
startup. By delaying the connection to the first operation, we avoid a deadlock. See
202-
`Is PyMongo Fork-Safe`_ for more information.
202+
:ref:`pymongo-fork-safe` for more information.
203203

204204

205205
Issues Resolved
@@ -208,7 +208,6 @@ Issues Resolved
208208
See the `PyMongo 4.9 release notes in JIRA`_ for the list of resolved issues
209209
in this release.
210210

211-
.. _Is PyMongo Fork-Safe: https://www.mongodb.com/docs/languages/python/pymongo-driver/current/troubleshooting/#forking-a-process-causes-a-deadlock
212211
.. _PyMongo 4.9 release notes in JIRA: https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=10004&version=39940
213212

214213

pymongo/asynchronous/topology.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ async def open(self) -> None:
236236
warnings.warn( # type: ignore[call-overload] # noqa: B028
237237
"AsyncMongoClient opened before fork. May not be entirely fork-safe, "
238238
"proceed with caution. See PyMongo's documentation for details: "
239-
"https://www.mongodb.com/docs/languages/python/pymongo-driver/current/troubleshooting/#forking-a-process-causes-a-deadlock",
239+
"https://dochub.mongodb.org/core/pymongo-fork-deadlock",
240240
**kwargs,
241241
)
242242
async with self._lock:

pymongo/synchronous/topology.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def open(self) -> None:
236236
warnings.warn( # type: ignore[call-overload] # noqa: B028
237237
"MongoClient opened before fork. May not be entirely fork-safe, "
238238
"proceed with caution. See PyMongo's documentation for details: "
239-
"https://www.mongodb.com/docs/languages/python/pymongo-driver/current/troubleshooting/#forking-a-process-causes-a-deadlock",
239+
"https://dochub.mongodb.org/core/pymongo-fork-deadlock",
240240
**kwargs,
241241
)
242242
with self._lock:

0 commit comments

Comments
 (0)