Skip to content

Commit 527a3d0

Browse files
author
Bob Grabar
committed
DOCS-268 edits to proc for replacing a replica set
1 parent 47cb759 commit 527a3d0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

source/administration/replica-sets.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,18 @@ directly.
129129
Replacing a Member
130130
~~~~~~~~~~~~~~~~~~
131131

132+
Use this procedure to replace a member of a replica set when the host
133+
name has changed. This procedure preserves all existing configuration
134+
for a member, except its hostname/location.
135+
132136
Replacing a member is useful if you have an existing configuration
133137
and only want to change the hostname of a member rather than completely
134138
remove all configurations related to the existing/previous set member.
135139

136140
Use :method:`rs.reconfig()` to change the value of the
137141
:data:`members[n].host` field to reflect the new hostname or port
138-
number. The :data:`members[n]._id` field does not change as a result of this
139-
operation.
142+
number. :method:`rs.reconfig()` will not change the value of :data:`members[n]._id`.
143+
140144

141145
.. code-block:: javascript
142146

0 commit comments

Comments
 (0)