Skip to content

Commit 8895ade

Browse files
jason-price-mongodbandf-mongodb
authored andcommitted
DOCS-13772 Prohibit user writes to system views
1 parent eeb0e04 commit 8895ade

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Starting in MongoDB 5.0, for :ref:`featureCompatibilityVersion
2+
<view-fcv>` set to ``"5.0"`` or greater, users can no longer write
3+
directly to the :data:`<database>.system.views` collection.

source/includes/5.0-mapReduce-deprecated.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

source/reference/system-collections.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ System collections include these collections stored in the ``admin`` database:
5050
.. data:: admin.system.version
5151

5252
The :data:`admin.system.version` collection stores metadata to
53-
suport internal operations. Do not modify this collection unless
53+
support internal operations. Do not modify this collection unless
5454
specifically instructed to in this documentation or by a MongoDB
5555
support engineer.
5656

@@ -84,7 +84,7 @@ each database:
8484

8585
Starting in MongoDB 4.2, ``<database>.system.indexes`` has been
8686
removed (access to the collection has been deprecated since 3.0).
87-
To list the inndexes, use the :dbcommand:`listIndexes` command
87+
To list the indexes, use the :dbcommand:`listIndexes` command
8888
instead.
8989

9090
.. data:: <database>.system.profile
@@ -94,13 +94,15 @@ each database:
9494

9595
.. data:: <database>.system.js
9696

97-
The :data:`<database>.system.js` collection holds special JavaScript
97+
The :data:`<database>.system.js` collection stores special JavaScript
9898
code for use in :doc:`server side JavaScript
9999
</core/server-side-javascript>`. See
100-
:doc:`/tutorial/store-javascript-function-on-server` for
101-
more information.
100+
:doc:`/tutorial/store-javascript-function-on-server` for more
101+
information.
102102

103103
.. data:: <database>.system.views
104104

105105
The :data:`<database>.system.views` collection contains
106106
information about each :doc:`view </core/views>` in the database.
107+
108+
.. include:: /includes/5.0-changes/no-direct-write-system-views.rst

source/release-notes/5.0-compatibility.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Map Reduce Changes
5757
General Changes
5858
---------------
5959

60+
- .. include:: /includes/5.0-changes/no-direct-write-system-views.rst
61+
6062
- Starting in MongoDB 5.0, the :dbcommand:`reIndex` command and the
6163
:method:`db.collection.reIndex()` shell method may only be run on
6264
:term:`standalone` instances.

0 commit comments

Comments
 (0)