Skip to content

DOCS-11045: adds new isMaster output fields for cluster time #3162

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

Merged
merged 1 commit into from
Dec 12, 2017
Merged
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
34 changes: 33 additions & 1 deletion source/reference/command/isMaster.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,34 @@ roles:
Clients may use :data:`~isMaster.maxWireVersion` to help negotiate
compatibility with MongoDB.

.. data:: isMaster.readOnly

.. versionadded:: 3.4

A boolean value that, when ``true``, indicates that the
:program:`mongod` or :program:`mongos` is running in read-only mode.

.. data:: isMaster.compression

.. versionadded:: 3.4

.. versionchanged:: 3.6 In MongoDB 3.6, :data:`~isMaster.compression`
appears by default. Previously, :data:`~isMaster.compression` only
appeared if the network connection was compressed.

An array listing the compression algorithms used to compress the
current connection's network communication between the
:program:`mongod` or :program:`mongos` and other members of the
deployment or the :program:`mongo` shell.

For a :program:`mongod` or :program:`mongos` using the ``snappy``
compressor , the :data:`~isMaster.compression` field would resemble
the following:

.. code-block:: sh

"compression": [ "snappy" ]

Sharded Instances
~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -227,7 +255,7 @@ of a replica set:

.. data:: isMaster.electionId

.. versionadded:: 3.0.0
.. versionadded:: 3.0

A unique identifier for each election. Included only in the output
of :dbcommand:`isMaster` for the :term:`primary`. Used by clients
Expand Down Expand Up @@ -259,3 +287,7 @@ of a replica set:
A :bsontype:`date <data_date>` object containing the
time of the last write operation readable by
:readconcern:`majority <"majority">` reads.

For details on the ``ok`` status field, the ``operationTime`` field,
and the ``$clusterTime`` field, see `Command Response
<command-response>`.