Skip to content

Commit 810b542

Browse files
committed
DOCS-13625 prohibit reads from system.profile in transaction
1 parent 1c00eef commit 810b542

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
@@ -174,6 +174,7 @@ toc_landing_pages = [
174174
"/tutorial/install-mongodb-on-suse",
175175
"/tutorial/install-mongodb-on-ubuntu",
176176
"/tutorial/install-mongodb-on-windows",
177+
"/tutorial/manage-the-database-profiler",
177178
"/tutorial/query-documents",
178179
"/tutorial/remove-documents",
179180
"/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
@@ -350,6 +350,11 @@ To view profiling information, query the :data:`system.profile
350350
:ref:`database-profiling-example-queries`. For an explanation of the
351351
output data, see :doc:`/reference/database-profiler`.
352352

353+
Starting in MongoDB 4.4, it is no longer possible to perform any
354+
operation, including reads, on the :data:`system.profile
355+
<<database>.system.profile>` collection from within a
356+
:doc:`transaction </core/transactions>`.
357+
353358
.. tip::
354359

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

0 commit comments

Comments
 (0)