@@ -893,7 +893,7 @@ Replication Methods
893
893
- Returns the status of the secondary members of the replica set.
894
894
895
895
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
897
897
:method:`rs.printSlaveReplicationInfo()` method in the legacy
898
898
:binary:`~mongo` shell. The :method:`rs.printSlaveReplicationInfo()` method is deprecated in ``mongosh``. Use
899
899
``rs.printSecondaryReplicationInfo()`` instead.
@@ -921,7 +921,7 @@ Replication Methods
921
921
- Returns the status of the secondary members of the replica set.
922
922
923
923
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
925
925
:method:`db.printSlaveReplicationInfo()` method. The :method:`db.printSlaveReplicationInfo()` method is deprecated in ``mongosh``. Use
926
926
``db.printSecondaryReplicationInfo()`` instead.
927
927
@@ -972,3 +972,15 @@ Replication Methods
972
972
973
973
- Returns the status of the replica set member that ``mongosh`` is
974
974
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