Skip to content

DOCS-4845: renames serverStatus.repl.slaves to repl.replicationProgress #2428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions source/reference/command/serverStatus.txt
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,12 @@ page.
:term:`Rollback` identifier. Used to determine if a rollback has
happened for this :program:`mongod` instance.

.. data:: serverStatus.repl.slaves
.. data:: serverStatus.repl.replicationProgress

.. versionchanged:: 3.2.0

MongoDB 3.2.0 renamed this field from ``serverStatus.repl.slaves``
to :data:`serverStatus.repl.replicationProgress`.

.. versionadded:: 3.0.0

Expand All @@ -652,26 +657,26 @@ page.
db.serverStatus({ "repl": 1 })
db.runCommand({ "serverStatus": 1, "repl": 1 })

The content of the :data:`~serverStatus.repl.slaves` section
The content of the :data:`~serverStatus.repl.replicationProgress` section
depends on the source of each member's replication. This section
supports internal operation and is for internal and diagnostic use only.

.. data:: serverStatus.repl.slaves[n].rid
.. data:: serverStatus.repl.replicationProgress[n].rid

An ObjectId used as an ID for the members of the replica
set. For internal use only.

.. data:: serverStatus.repl.slaves[n].host
.. data:: serverStatus.repl.replicationProgress[n].host

The name of the host in ``[hostname]:[port]`` format for the member
of the replica set.

.. data:: serverStatus.repl.slaves[n].optime
.. data:: serverStatus.repl.replicationProgress[n].optime

Information regarding the last operation from the :term:`oplog` that
the member applied, as reported from this member.

.. data:: serverStatus.repl.slaves[n].memberID
.. data:: serverStatus.repl.replicationProgress[n].memberID

The integer identifier for this member of the replica set.

Expand Down
25 changes: 16 additions & 9 deletions source/reference/server-status.txt
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,8 @@ current memory use:

The :ref:`server-status-repl` document reports on the state of
replication and the :term:`replica set`. This document only appears
for replica sets.
for replica sets. :method:`db.serverStatus()` displays a subset of these fields
by default. To request all of the fields, use ``db.serverStatus({"repl":1})``.

.. code-block:: javascript

Expand All @@ -442,14 +443,20 @@ for replica sets.
"electionId" : ObjectId(""),
"rbid" : <num>,
"replicationProgress" : [
{
"rid" : <ObjectId>,
"optime" : <timestamp>,
"host" : <hostname>,
"memberID" : <num>
}
],
},
{
"rid" : <ObjectId>,
"optime" : { ts: <timestamp>, term: <num> },
"host" : <hostname>,
"memberId" : <num>
},
{
"rid" : <ObjectId>,
"optime" : { ts: <timestamp>, term: <num> },
"host" : <hostname>,
"memberId" : <num>
}
]
}

.. _server-status-example-range-deleter:

Expand Down
5 changes: 5 additions & 0 deletions source/release-notes/3.2-compatibility.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ General Compatibility Changes
In MongoDB 3.2, ``cursor.showDiskLoc()`` is deprecated in favor of
:method:`cursor.showRecordId()`, and both return a new document format.

MongoDB 3.2 renamed the ``serverStatus.repl.slaves`` field to to
:data:`serverStatus.repl.replicationProgress`. See: the
:command:`db.serverStatus()` :ref:`<server-status-repl>` reference for
more information.

Additional Information
----------------------

Expand Down