File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -129,14 +129,18 @@ directly.
129129Replacing 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+
132136Replacing a member is useful if you have an existing configuration
133137and only want to change the hostname of a member rather than completely
134138remove all configurations related to the existing/previous set member.
135139
136140Use :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
You can’t perform that action at this time.
0 commit comments