Skip to content

Commit ecd2e1c

Browse files
Revert "DOCS-16593-chunks-update BACKPORT" (#6029)
1 parent 252ac6e commit ecd2e1c

File tree

1 file changed

+24
-32
lines changed

1 file changed

+24
-32
lines changed

source/reference/config-database.txt

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ to support sharding:
164164

165165
.. data:: config.changelog.what
166166

167-
The type of change recorded. Possible values include:
167+
Reflects the type of change recorded. Possible values include:
168168

169169
- ``dropCollection``
170170
- ``dropCollection.start``
@@ -181,48 +181,38 @@ to support sharding:
181181

182182
.. data:: config.changelog.details
183183

184-
A :term:`document` that contains additional details for
184+
A :term:`document` that contains additional details regarding
185185
the change. The structure of the :data:`~config.changelog.details`
186186
document depends on the type of change.
187187

188188
.. data:: config.chunks
189189

190190
.. include:: /includes/admonition-config-db-is-internal.rst
191191

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\"``:
194195

195196
.. code-block:: javascript
196197

197198
{
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" } ]
210210
}
211211

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.
226216

227217
.. data:: config.collections
228218

@@ -470,7 +460,7 @@ to support sharding:
470460
.. include:: /includes/admonition-config-db-is-internal.rst
471461

472462
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:
474464

475465
.. code-block:: javascript
476466

@@ -488,7 +478,9 @@ to support sharding:
488478
Collections to Support Sessions
489479
-------------------------------
490480

491-
The ``config`` database contains the
481+
.. versionadded:: 3.6
482+
483+
Starting in MongoDB 3.6, the ``config`` database contains the
492484
*internal* collections to support :ref:`causally consistent sessions
493485
<sessions>` for standalones, replica sets, and sharded clusters and
494486
retryable writes and :doc:`transactions </core/transactions>` for

0 commit comments

Comments
 (0)