Skip to content

Commit 49c7c83

Browse files
DOCSP-12636 updates for review feedback
1 parent 258c4a6 commit 49c7c83

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

source/reference/methods.txt

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -888,12 +888,15 @@ Replication Methods
888888

889889
- Description
890890

891-
* - ``rs.printSecondaryReplicationInfo()``
891+
* - ``rs.printSecondaryReplicationInfo``
892892

893-
- Returns the status of the secondary members of the replica set. This
894-
is identical to the ``db.printSecondaryReplicationInfo()`` method.
895-
The server :method:`rs.printSlaveReplicationInfo()` method is referred
896-
to as ``rs.printSecondaryReplicationInfo()`` in ``mongosh``.
893+
- Returns the status of the secondary members of the replica set.
894+
895+
This is identical to the ``db.printSecondaryReplicationInfo()``
896+
method. This method returns the same output as the
897+
:method:`rs.printSlaveReplicationInfo()` method in the legacy
898+
:binary:`~mongo` shell. The :method:`rs.printSlaveReplicationInfo()` method is deprecated in ``mongosh``. Use
899+
``rs.printSecondaryReplicationInfo()`` instead.
897900

898901
The following is an example output from the
899902
``rs.printSecondaryReplicationInfo()`` method issued on a replica set with two secondary members:
@@ -913,12 +916,14 @@ Replication Methods
913916
replLag: '0 secs (0 hrs) behind the primary '
914917
}
915918

916-
* - ``db.printSecondaryReplicationInfo()``
919+
* - ``db.printSecondaryReplicationInfo``
917920

918-
- Returns the status of the secondary members of the replica set. This
919-
is identical to the ``rs.printSecondaryReplicationInfo()`` method.
920-
The server :method:`db.printSlaveReplicationInfo()` method is referred
921-
to as ``db.printSecondaryReplicationInfo()`` in ``mongosh``.
921+
- Returns the status of the secondary members of the replica set.
922+
923+
This is identical to the ``rs.printSecondaryReplicationInfo()`` method.
924+
This method returns the same output as the
925+
:method:`db.printSlaveReplicationInfo()` method. The :method:`db.printSlaveReplicationInfo()` method is deprecated in ``mongosh``. Use
926+
``db.printSecondaryReplicationInfo()`` instead.
922927

923928
The following is an example output from the
924929
``rs.printSecondaryReplicationInfo()`` method issued on a replica set with two secondary members:
@@ -942,22 +947,26 @@ Replication Methods
942947

943948
- Returns the status of the replica set from the oplog data.
944949

945-
* - ``rs.isMaster()``
950+
* - ``rs.isMaster``
946951

947952
- Returns the replica set configuration, role, and status for
948-
the ``mongod`` instance that ``mongosh`` is connected to. The ``mongosh`` ``rs.isMaster()`` method is identical to the server :manual:`isMaster </reference/command/isMaster/>` command.
953+
the ``mongod`` instance that ``mongosh`` is connected to.
954+
955+
The ``mongosh`` ``rs.isMaster()`` method wraps the server :dbcommand:`isMaster` command.
949956

950957
* - :method:`rs.printReplicationInfo()`
951958

952959
- Returns the oplog of the replica set member that ``mongosh`` is
953-
connected to. This is identical to the
954-
:method:`db.printReplicationInfo()` method.
960+
connected to.
961+
962+
This is identical to the :method:`db.printReplicationInfo()` method.
955963

956964
* - :method:`db.printReplicationInfo()`
957965

958966
- Returns the oplog of the replica set member that ``mongosh`` is
959-
connected to. This is identical to the
960-
:method:`rs.printReplicationInfo()` method.
967+
connected to.
968+
969+
This is identical to the :method:`rs.printReplicationInfo()` method.
961970

962971
* - :method:`rs.status()`
963972

0 commit comments

Comments
 (0)