@@ -128,6 +128,34 @@ roles:
128
128
Clients may use :data:`~isMaster.maxWireVersion` to help negotiate
129
129
compatibility with MongoDB.
130
130
131
+ .. data:: isMaster.readOnly
132
+
133
+ .. versionadded:: 3.4
134
+
135
+ A boolean value that, when ``true``, indicates that the
136
+ :program:`mongod` or :program:`mongos` is running in read-only mode.
137
+
138
+ .. data:: isMaster.compression
139
+
140
+ .. versionadded:: 3.4
141
+
142
+ .. versionchanged:: 3.6 In MongoDB 3.6, :data:`~isMaster.compression`
143
+ appears by default. Previously, :data:`~isMaster.compression` only
144
+ appeared if the network connection was compressed.
145
+
146
+ An array listing the compression algorithms used to compress the
147
+ current connection's network communication between the
148
+ :program:`mongod` or :program:`mongos` and other members of the
149
+ deployment or the :program:`mongo` shell.
150
+
151
+ For a :program:`mongod` or :program:`mongos` using the ``snappy``
152
+ compressor , the :data:`~isMaster.compression` field would resemble
153
+ the following:
154
+
155
+ .. code-block:: sh
156
+
157
+ "compression": [ "snappy" ]
158
+
131
159
Sharded Instances
132
160
~~~~~~~~~~~~~~~~~
133
161
@@ -227,7 +255,7 @@ of a replica set:
227
255
228
256
.. data:: isMaster.electionId
229
257
230
- .. versionadded:: 3.0.0
258
+ .. versionadded:: 3.0
231
259
232
260
A unique identifier for each election. Included only in the output
233
261
of :dbcommand:`isMaster` for the :term:`primary`. Used by clients
@@ -259,3 +287,7 @@ of a replica set:
259
287
A :bsontype:`date <data_date>` object containing the
260
288
time of the last write operation readable by
261
289
:readconcern:`majority <"majority">` reads.
290
+
291
+ For details on the ``ok`` status field, the ``operationTime`` field,
292
+ and the ``$clusterTime`` field, see `Command Response
293
+ <command-response>`.
0 commit comments