File tree Expand file tree Collapse file tree 4 files changed +46
-6
lines changed Expand file tree Collapse file tree 4 files changed +46
-6
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,25 @@ content: |
7777 });
7878 });
7979 ---
80+ ref : 4.2-downgrade-fcv-system-unique-index
81+ content : |
82+
83+ In addition, if you have enabled :doc:`access control
84+ </tutorial/enable-authentication>`, you must also remove the system
85+ unique index ``user_1_db_1`` on the ``admin.system.users``
86+ collection.
87+
88+ If fCV has ever been set to ``"4.2"``, use the following command to
89+ drop the ``user_1_db_1`` system unique index:
90+
91+ .. code-block:: javascript
92+
93+ db.getSiblingDB("admin").getCollection("system.users").dropIndex("user_1_db_1")
94+
95+ The ``user_1_db_1`` index will automatically be rebuilt when starting
96+ the server with the 4.0 binary in the procedure below.
97+
98+ ---
8099ref : 4.2-downgrade-fcv-unique-index-access-control-sharded-cluster
81100content : |
82101
Original file line number Diff line number Diff line change @@ -137,15 +137,22 @@ Remove all persisted 4.2 features that are :ref:`incompatible with 4.0
137137 Script
138138 .. include:: /includes/extracts/4.2-downgrade-fcv-unique-index-script.rst
139139
140- 2d. Remove Wildcard Indexes
140+ 2d. Remove ``user_1_db_1`` System Unique Index
141+ ``````````````````````````````````````````````
142+
143+ .. container::
144+
145+ .. include:: /includes/extracts/4.2-downgrade-fcv-system-unique-index.rst
146+
147+ 2e. Remove Wildcard Indexes
141148````````````````````````````
142149
143150.. container::
144151
145152 .. include:: /includes/extracts/4.2-downgrade-fcv-wildcard-index.rst
146153
147154
148- 2e . View Definitions/Collection Validation Definitions that Include 4.2 Operators
155+ 2f . View Definitions/Collection Validation Definitions that Include 4.2 Operators
149156`````````````````````````````````````````````````````````````````````````````````
150157
151158.. container::
Original file line number Diff line number Diff line change @@ -130,14 +130,21 @@ Remove all persisted 4.2 features that are :ref:`incompatible with 4.0
130130 Script to run on shards
131131 .. include:: /includes/extracts/4.2-downgrade-fcv-unique-index-script-local-users.rst
132132
133- 2d. Remove Wildcard Indexes
133+ 2d. Remove ``user_1_db_1`` System Unique Index
134+ ``````````````````````````````````````````````
135+
136+ .. container::
137+
138+ .. include:: /includes/extracts/4.2-downgrade-fcv-system-unique-index.rst
139+
140+ 2e. Remove Wildcard Indexes
134141```````````````````````````
135142
136143.. container::
137144
138145 .. include:: /includes/extracts/4.2-downgrade-fcv-wildcard-index.rst
139146
140- 2e . View Definitions/Collection Validation Definitions that Include 4.2 Operators
147+ 2f . View Definitions/Collection Validation Definitions that Include 4.2 Operators
141148`````````````````````````````````````````````````````````````````````````````````
142149
143150.. container::
Original file line number Diff line number Diff line change @@ -100,14 +100,21 @@ Remove all persisted 4.2 features that are :ref:`incompatible with 4.0
100100 Script
101101 .. include:: /includes/extracts/4.2-downgrade-fcv-unique-index-script.rst
102102
103- 2d. Remove Wildcard Indexes
103+ 2d. Remove ``user_1_db_1`` System Unique Index
104+ ``````````````````````````````````````````````
105+
106+ .. container::
107+
108+ .. include:: /includes/extracts/4.2-downgrade-fcv-system-unique-index.rst
109+
110+ 2e. Remove Wildcard Indexes
104111```````````````````````````
105112
106113.. container::
107114
108115 .. include:: /includes/extracts/4.2-downgrade-fcv-wildcard-index.rst
109116
110- 2e . View Definitions/Collection Validation Definitions that Include 4.2 Operators
117+ 2f . View Definitions/Collection Validation Definitions that Include 4.2 Operators
111118`````````````````````````````````````````````````````````````````````````````````
112119
113120.. container::
You can’t perform that action at this time.
0 commit comments