Skip to content

Commit 6246d42

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-21874 index-support-reverse-replication (#3225) (#3242)
* DOCSP-21874-index-support-reverse-replication * DOCSP-21874-index-support-reverse-replication * DOCSP-21874-index-support-reverse-replication * DOCSP-21874-index-support-reverse-replication * DOCSP-21874-index-support-reverse-replication * DOCSP-21874-index-support-reverse-replication * DOCSP-21874-index-support-reverse-replication * DOCSP-21874-index-support-reverse-replication --------- Co-authored-by: jason-price-mongodb <[email protected]>
1 parent 95cbaf2 commit 6246d42

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

source/reference/command/collMod.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ Index Options
128128

129129
* - ``unique``
130130
- A boolean that determines whether or not the index is unique.
131+
132+
.. note::
133+
134+
Must be set to ``true``. ``false`` is not supported.
131135

132136
When ``unique`` is ``true``, ``collMod`` scans the
133137
``keyPattern`` index for duplicates and then converts it to

source/reference/command/validate.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ consistent sessions <causal-consistency>`. Starting in MongoDB 4.2, the
145145
associated with :ref:`causally consistent sessions
146146
<causal-consistency>`.
147147

148+
Index Key Format
149+
~~~~~~~~~~~~~~~~
150+
151+
Starting in MongoDB 6.0, the ``validate`` command returns a message if a
152+
:ref:`unique index <index-type-unique>` has a key format that is
153+
incompatible. The message indicates an old format is used.
154+
148155
Examples
149156
--------
150157

source/release-notes/6.0-compatibility.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ single document.
7979

8080
See :parameter:`indexMaxNumGeneratedKeysPerDocument`.
8181

82+
Index Key Format
83+
~~~~~~~~~~~~~~~~
84+
85+
Starting in MongoDB 6.0, a change to the :ref:`unique index
86+
<index-type-unique>` key format was introduced. If you create a unique
87+
index in MongoDB 6.0, the index won't work with MongoDB versions earlier
88+
than 5.3.2 or 5.0.7.
89+
8290
Legacy ``mongo`` Shell Removed
8391
------------------------------
8492

0 commit comments

Comments
 (0)