@@ -164,7 +164,7 @@ to support sharding:
164
164
165
165
.. data:: config.changelog.what
166
166
167
- The type of change recorded. Possible values include:
167
+ Reflects the type of change recorded. Possible values include:
168
168
169
169
- ``dropCollection``
170
170
- ``dropCollection.start``
@@ -181,48 +181,38 @@ to support sharding:
181
181
182
182
.. data:: config.changelog.details
183
183
184
- A :term:`document` that contains additional details for
184
+ A :term:`document` that contains additional details regarding
185
185
the change. The structure of the :data:`~config.changelog.details`
186
186
document depends on the type of change.
187
187
188
188
.. data:: config.chunks
189
189
190
190
.. include:: /includes/admonition-config-db-is-internal.rst
191
191
192
- The :data:`config.chunks` collection stores a document for each
193
- chunk in the cluster. The following example shows a document:
192
+ The :data:`~config.chunks` collection stores a document for each chunk in
193
+ the cluster. Consider the following example of a document for a
194
+ chunk named ``mydb.foo-a_\"cat\"``:
194
195
195
196
.. code-block:: javascript
196
197
197
198
{
198
- _id: ObjectId('65a954c0de11596e08e7c1dc'),
199
- uuid: UUID('a4479215-a38d-478f-a82b-e5e95d455e55'),
200
- min: { a: Long('121204345') },
201
- max: { a: Long('993849349') },
202
- shard: 'shard01',
203
- lastmod: Timestamp({ t: 1, i: 0 }),
204
- history: [
205
- {
206
- validAfter: Timestamp({ t: 1705596095, i: 14 }),
207
- shard: 'shard01'
208
- }
209
- ]
199
+ "_id" : "mydb.foo-a_\"cat\"",
200
+ "lastmod" : Timestamp(2, 1),
201
+ "uuid": "c025d039-e626-435e-b2d2-c1d436038041",
202
+ "min" : {
203
+ "animal" : "cat"
204
+ },
205
+ "max" : {
206
+ "animal" : "dog"
207
+ },
208
+ "shard" : "shard0004",
209
+ "history" : [ { "validAfter" : Timestamp(1569368571, 27), "shard" : "shard0004" } ]
210
210
}
211
211
212
- In the document:
213
-
214
- - ``_id`` is the chunk identifier.
215
- - ``min`` and ``max`` are the range of values for the chunk's shard
216
- key.
217
- - ``shard`` is the name of the shard that stores the chunk in the
218
- cluster.
219
-
220
- .. tip::
221
-
222
- To find the chunks in a collection, retrieve the collection's
223
- ``uuid`` identifier from the :data:`config.collections`
224
- collection. Then, use ``uuid`` to retrieve the matching document
225
- with the same ``uuid`` from the ``config.chunks`` collection.
212
+ These documents store the range of values for the shard key that
213
+ describe the chunk in the ``min`` and ``max`` fields. Additionally
214
+ the ``shard`` field identifies the shard in the cluster that "owns"
215
+ the chunk.
226
216
227
217
.. data:: config.collections
228
218
@@ -470,7 +460,7 @@ to support sharding:
470
460
.. include:: /includes/admonition-config-db-is-internal.rst
471
461
472
462
The :data:`~config.version` collection holds the current metadata version number. This
473
- collection contains only one document. For example:
463
+ collection contains only one document. For example:
474
464
475
465
.. code-block:: javascript
476
466
@@ -488,7 +478,9 @@ to support sharding:
488
478
Collections to Support Sessions
489
479
-------------------------------
490
480
491
- The ``config`` database contains the
481
+ .. versionadded:: 3.6
482
+
483
+ Starting in MongoDB 3.6, the ``config`` database contains the
492
484
*internal* collections to support :ref:`causally consistent sessions
493
485
<sessions>` for standalones, replica sets, and sharded clusters and
494
486
retryable writes and :doc:`transactions </core/transactions>` for
0 commit comments