Skip to content

Commit 971978a

Browse files
Merge pull request #60 from kanchana-mongodb/DOCSP-12661
DOCSP-12661 doc for Add Replica Set Members methods
2 parents f3945f4 + 5b0ed66 commit 971978a

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

source/reference/methods.txt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ Replication Methods
893893
- Returns the status of the secondary members of the replica set.
894894

895895
This is identical to the ``db.printSecondaryReplicationInfo()``
896-
method. This method returns the same output as the
896+
method. This method's output is similar to the
897897
:method:`rs.printSlaveReplicationInfo()` method in the legacy
898898
:binary:`~mongo` shell. The :method:`rs.printSlaveReplicationInfo()` method is deprecated in ``mongosh``. Use
899899
``rs.printSecondaryReplicationInfo()`` instead.
@@ -921,7 +921,7 @@ Replication Methods
921921
- Returns the status of the secondary members of the replica set.
922922

923923
This is identical to the ``rs.printSecondaryReplicationInfo()`` method.
924-
This method returns the same output as the
924+
This method's output is similar to the
925925
:method:`db.printSlaveReplicationInfo()` method. The :method:`db.printSlaveReplicationInfo()` method is deprecated in ``mongosh``. Use
926926
``db.printSecondaryReplicationInfo()`` instead.
927927

@@ -972,3 +972,15 @@ Replication Methods
972972

973973
- Returns the status of the replica set member that ``mongosh`` is
974974
connected to.
975+
* - :method:`rs.add()`
976+
977+
- Adds a member to the replica set. You must connect to the
978+
primary of the replica set to run this method.
979+
980+
* - :method:`rs.addArb()`
981+
982+
- Adds an arbiter to an existing replica set.
983+
984+
* - :method:`rs.remove()`
985+
986+
- Removes the member specified by hostname from the replica set.

0 commit comments

Comments
 (0)