Skip to content

Commit 0fa3475

Browse files
authored
PYTHON-5155 Use dochub link for fork warning (#2173) [v4.11] (#2174)
1 parent 315f3cd commit 0fa3475

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
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/faq/#is-pymongo-fork-safe-
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-3
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,7 @@ async def open(self) -> None:
232232
warnings.warn( # type: ignore[call-overload] # noqa: B028
233233
"AsyncMongoClient opened before fork. May not be entirely fork-safe, "
234234
"proceed with caution. See PyMongo's documentation for details: "
235-
"https://www.mongodb.com/docs/languages/"
236-
"python/pymongo-driver/current/faq/"
237-
"#is-pymongo-fork-safe-",
235+
"https://dochub.mongodb.org/core/pymongo-fork-deadlock",
238236
**kwargs,
239237
)
240238
async with self._lock:

pymongo/synchronous/topology.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,7 @@ def open(self) -> None:
232232
warnings.warn( # type: ignore[call-overload] # noqa: B028
233233
"MongoClient opened before fork. May not be entirely fork-safe, "
234234
"proceed with caution. See PyMongo's documentation for details: "
235-
"https://www.mongodb.com/docs/languages/"
236-
"python/pymongo-driver/current/faq/"
237-
"#is-pymongo-fork-safe-",
235+
"https://dochub.mongodb.org/core/pymongo-fork-deadlock",
238236
**kwargs,
239237
)
240238
with self._lock:

0 commit comments

Comments
 (0)