Skip to content

Commit c65e805

Browse files
committed
DOCS-13625 prohibit reads from system.profile in transaction
1 parent fbcab20 commit c65e805

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

snooty.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ toc_landing_pages = [
171171
"/tutorial/install-mongodb-on-suse",
172172
"/tutorial/install-mongodb-on-ubuntu",
173173
"/tutorial/install-mongodb-on-windows",
174+
"/tutorial/manage-the-database-profiler",
174175
"/tutorial/query-documents",
175176
"/tutorial/remove-documents",
176177
"/tutorial/update-documents"

source/reference/database-profiler.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,18 @@ use normal MongoDB queries on the :data:`system.profile
3030
database, the profiler will profile some write activity, even for
3131
databases that are otherwise read-only.
3232

33-
.. versionchanged:: 3.4
34-
3533
:dbcommand:`currentOp` and the
3634
:doc:`database profiler</reference/database-profiler>` report the same
3735
basic diagnostic information for all CRUD operations, including the
3836
following:
3937

4038
.. include:: /includes/fact-diagnostic-info.rst
4139

40+
Starting in MongoDB 4.4, it is no longer possible to perform any
41+
operation, including reads, on the :data:`system.profile
42+
<<database>.system.profile>` collection from within a
43+
:doc:`transaction </core/transactions>`.
44+
4245
Example ``system.profile`` Document
4346
-----------------------------------
4447

source/tutorial/manage-the-database-profiler.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,11 @@ To view profiling information, query the :data:`system.profile
357357
:ref:`database-profiling-example-queries`. For an explanation of the
358358
output data, see :doc:`/reference/database-profiler`.
359359

360+
Starting in MongoDB 4.4, it is no longer possible to perform any
361+
operation, including reads, on the :data:`system.profile
362+
<<database>.system.profile>` collection from within a
363+
:doc:`transaction </core/transactions>`.
364+
360365
.. tip::
361366

362367
You can use :query:`$comment` to add data to the query predicate to

0 commit comments

Comments
 (0)