@@ -498,7 +498,7 @@ The first operation uses :method:`rs.conf()` to set the local variable
498498is a :term:`document`. The next three operations change the
499499:data:`~local.system.replset.settings.members[n].priority` value in the ``cfg`` document for the
500500first three members configured in the :data:`members
501- <rs.conf .members>` array. The final operation
501+ <local.system.replset .members>` array. The final operation
502502calls :method:`rs.reconfig()` with the argument of ``cfg`` to initialize
503503the new configuration.
504504
@@ -667,7 +667,7 @@ You can use the following sequence of commands:
667667 cfg.settings.chainingAllowed = true
668668 rs.reconfig(cfg)
669669
670- .. note::
670+ .. note::
671671
672672 If chained replication is disabled, you still can use
673673 :dbcommand:`replSetSyncFrom` to specify that a secondary replicates
@@ -745,11 +745,11 @@ To resync the stale member:
745745 At this point, the :program:`mongod` will perform an initial
746746 sync. The length of the initial sync may process depends on the
747747 size of the database and network connection between members of the
748- replica set.
748+ replica set.
749749
750750 Initial sync operations can impact the other members of the set and
751751 create additional traffic to the primary, and can only occur if
752- another member of the set is accessible and up to date.
752+ another member of the set is accessible and up to date.
753753
754754.. index:: replica set; resync
755755.. _replica-set-resync-by-copying:
@@ -758,14 +758,14 @@ Resync by Copying All Datafiles from Another Member
758758```````````````````````````````````````````````````
759759
760760This approach uses a copy of the data files from an existing member of
761- the replica set, or a back of the data files to "seed" the stale member.
761+ the replica set, or a back of the data files to "seed" the stale member.
762762
763763The copy or backup of the data files **must** be sufficiently recent
764764to allow the new member to catch up with the :term:`oplog`, otherwise
765765the member would need to perform an initial sync.
766766
767- .. note::
768-
767+ .. note::
768+
769769 In most cases you cannot copy data files from a running
770770 :program:`mongod` instance to another, because the data files will
771771 change during the file copy operation. Consider the
@@ -795,12 +795,12 @@ Additionally, MongoDB provides an authentication mechanism for
795795replica sets. These instances enable authentication but specify a
796796shared key file that serves as a shared password.
797797
798- .. versionadded:: 1.8
798+ .. versionadded:: 1.8
799799 Added support authentication in replica set deployments.
800800
801801.. versionchanged:: 1.9.1
802802 Added support authentication in sharded replica set deployments.
803-
803+
804804
805805To enable authentication add the following option to your configuration file:
806806
@@ -1155,20 +1155,20 @@ the oplog has the wrong data type in the ``ts`` field.
11551155 .. code-block:: javascript
11561156
11571157 { "ts" : {t: 1347982456000, i: 1},
1158- "h" : NumberLong("8191276672478122996"),
1159- "op" : "n",
1160- "ns" : "",
1158+ "h" : NumberLong("8191276672478122996"),
1159+ "op" : "n",
1160+ "ns" : "",
11611161 "o" : { "msg" : "Reconfig set", "version" : 4 } }
11621162
11631163 And the second query returns this as the last entry where ``ts``
11641164 has the ``Timestamp`` type:
11651165
11661166 .. code-block:: javascript
11671167
1168- { "ts" : Timestamp(1347982454000, 1),
1169- "h" : NumberLong("6188469075153256465"),
1170- "op" : "n",
1171- "ns" : "",
1168+ { "ts" : Timestamp(1347982454000, 1),
1169+ "h" : NumberLong("6188469075153256465"),
1170+ "op" : "n",
1171+ "ns" : "",
11721172 "o" : { "msg" : "Reconfig set", "version" : 3 } }
11731173
11741174 Then the value for the ``ts`` field in the last oplog entry is of the
@@ -1179,7 +1179,7 @@ use an update operation that resembles the following:
11791179
11801180.. code-block:: javascript
11811181
1182- db.oplog.rs.update( { ts: { t:1347982456000, i:1 } },
1182+ db.oplog.rs.update( { ts: { t:1347982456000, i:1 } },
11831183 { $set: { ts: new Timestamp(1347982456000, 1)}})
11841184
11851185Modify the timestamp values as needed based on your oplog entry. This
@@ -1232,4 +1232,4 @@ primary and the set will become read only. To avoid this situation,
12321232attempt to place a majority of instances in one data center with a
12331233minority of instances in a secondary facility.
12341234
1235- .. see:: :ref:`replica-set-election-internals`.
1235+ .. see:: :ref:`replica-set-election-internals`.
0 commit comments