@@ -89,15 +89,15 @@ Consider the following levels of conceptual write concern:
8989 Before the releases outlined in :ref:`driver-write-concern-change`,
9090 this was the default write concern.
9191
92- .. _write-concern-acknowledged:
92+ .. _write-concern-acknowledged:
9393
9494- receipt *acknowledged*: The :program:`mongod` will confirm the
9595 receipt of the write operation, allowing the client to catch
9696 network, duplicate key, and other exceptions. After the releases
9797 outlined in :ref:`driver-write-concern-change`, this is the default
9898 write concern. [#default-write-concern]_
9999
100- .. _write-concern-replica-journaled:
100+ .. _write-concern-replica-journaled:
101101
102102- *journaled*: The :program:`mongod` will confirm the write
103103 operation only after it has written the operation to the
@@ -111,7 +111,7 @@ Consider the following levels of conceptual write concern:
111111 is not fully durable. Require *journaled* as part of the write
112112 concern to provide this durability guarantee.
113113
114- .. _write-concern-replica-acknowledged:
114+ .. _write-concern-replica-acknowledged:
115115
116116:term:`Replica sets <replica set>` present an additional layer of
117117consideration for write concern. Basic write concern level affect the
@@ -132,8 +132,8 @@ of a replica set. See the :ref:`Write Concern for Replica Sets
132132.. [#default-write-concern] The default write concern is to call
133133 :dbcommand:`getLastError` with no arguments. For replica sets, you
134134 can define the default write concern settings in the
135- :data:`getLastErrorDefaults < settings.getLastErrorDefaults>`. If
136- :data:`getLastErrorDefaults < settings.getLastErrorDefaults> ` does
135+ :data:`~local.system.replset. settings.getLastErrorDefaults`
136+ If :data:`~local.system.replset. settings.getLastErrorDefaults` does
137137 not define a default write concern setting,
138138 :dbcommand:`getLastError` defaults to basic receipt acknowledgment.
139139
@@ -155,8 +155,9 @@ document's ``err`` field contains either:
155155
156156The definition of a "successful write" depends on the arguments
157157specified to :dbcommand:`getLastError`, or in replica sets, the
158- configuration of :data:`getLastErrorDefaults
159- <settings.getLastErrorDefaults>`. When deciding the level of write
158+ configuration of
159+ :data:`~local.system.replset.settings.getLastErrorDefaults`.
160+ When deciding the level of write
160161concern for your application, become familiar with the
161162:ref:`write-concern-considerations`.
162163
@@ -365,15 +366,15 @@ they do, adds a :data:`~collStats.paddingFactor` so that the documents have room
365366to grow on subsequent writes. The :data:`~collStats.paddingFactor` indicates the
366367padding for new inserts and moves.
367368
368- .. versionadded:: 2.2
369+ .. versionadded:: 2.2
369370 You can use the :dbcommand:`collMod` command
370371 with the :collflag:`usePowerOf2Sizes` flag so that MongoDB
371372 allocates document space in sizes that are powers of 2. This helps
372373 ensure that MongoDB can efficiently reuse the space freed as a
373374 result of deletions or document relocations. As with all padding,
374375 using document space allocations with power of 2 sizes minimizes,
375376 but does not eliminate, document movements.
376-
377+
377378To check the current :data:`~collStats.paddingFactor` on a collection, you can
378379run the :dbcommand:`db.collection.stats()` command in the
379380:program:`mongo` shell, as in the following example:
@@ -389,7 +390,7 @@ example:
389390
390391.. code-block:: none
391392
392- padding size = (paddingFactor - 1) * <document size>.
393+ padding size = (paddingFactor - 1) * <document size>.
393394
394395For example, a :data:`~collStats.paddingFactor` of ``1.0`` specifies no padding
395396whereas a paddingFactor of ``1.5`` specifies a padding size of ``0.5`` or 50
@@ -408,10 +409,10 @@ until you perform a :dbcommand:`compact` or a
408409
409410.. note::
410411
411- The following operations remove padding:
412-
412+ The following operations remove padding:
413+
413414 - :dbcommand:`compact`,
414- - :dbcommand:`repairDatabase`, and
415+ - :dbcommand:`repairDatabase`, and
415416 - initial replica sync operations.
416417
417418 However, with the :dbcommand:`compact` command, you can run the
@@ -437,8 +438,8 @@ until you perform a :dbcommand:`compact` or a
437438.. seealso::
438439
439440 - :ref:`faq-developers-manual-padding`
440-
441- - `Fast Updates with MongoDB with in-place Updates <http://blog.mongodb.org/post/248614779/fast-updates-with-mongodb-update-in-place>`_ (blog post)
441+
442+ - `Fast Updates with MongoDB with in-place Updates <http://blog.mongodb.org/post/248614779/fast-updates-with-mongodb-update-in-place>`_ (blog post)
442443
443444Architecture
444445------------
0 commit comments