Skip to content

Commit 91f2768

Browse files
committed
DOCSP-8628: Document new 'hello' command
1 parent a62c15e commit 91f2768

24 files changed

+457
-46
lines changed

source/core/replica-set-hidden-member.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ data set but is **invisible** to client applications. Hidden members
1919
are good for workloads with different usage patterns from the other
2020
members in the :term:`replica set`. Hidden members must always be
2121
:ref:`priority 0 members <replica-set-secondary-only-members>` and
22-
so **cannot become primary**. The :method:`db.isMaster()` method does not
22+
so **cannot become primary**. The :method:`db.hello()` method does not
2323
display hidden members. Hidden members, however, **may vote** in
2424
:ref:`elections <replica-set-elections>`.
2525

source/core/sharded-cluster-query-router.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,15 @@ Confirm Connection to ``mongos`` Instances
205205
------------------------------------------
206206

207207
To detect if the MongoDB instance that your client is connected
208-
to is :binary:`~bin.mongos`, use the :dbcommand:`isMaster` command. When a
209-
client connects to a :binary:`~bin.mongos`, :dbcommand:`isMaster` returns
208+
to is :binary:`~bin.mongos`, use the :dbcommand:`hello` command. When a
209+
client connects to a :binary:`~bin.mongos`, :dbcommand:`hello` returns
210210
a document with a ``msg`` field that holds the string
211211
``isdbgrid``. For example:
212212

213213
.. code-block:: javascript
214214

215215
{
216-
"ismaster" : true,
216+
"isWritablePrimary" : true,
217217
"msg" : "isdbgrid",
218218
"maxBsonObjectSize" : 16777216,
219219
"ok" : 1,

source/includes/extracts-transactions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ content: |
116116
ref: transactions-operations-restrictions-info
117117
content: |
118118
119-
Informational commands, such as :dbcommand:`isMaster`,
119+
Informational commands, such as :dbcommand:`hello`,
120120
:dbcommand:`buildInfo`, :dbcommand:`connectionStatus` (and their
121121
helper methods) are allowed in transactions; however, they cannot be
122122
the first operation in the transaction.

source/includes/fact-bulkwrite-operation-batches.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The number of operations in each group cannot exceed the value of
22
the :limit:`maxWriteBatchSize <Write Command Batch Limit Size>` of
33
the database. As of MongoDB 3.6, this value is ``100,000``.
4-
This value is shown in the :data:`isMaster.maxWriteBatchSize` field.
4+
This value is shown in the :data:`hello.maxWriteBatchSize` field.
55

66
This limit prevents issues with oversized error messages. If a group
77
exceeds this :limit:`limit <Write Command Batch Limit Size>`,

source/reference/command.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,13 @@ Replication Commands
335335

336336
- Internal command that applies :term:`oplog` entries to the current data set.
337337

338+
* - :dbcommand:`hello`
339+
340+
- Displays information about this member's role in the replica set, including whether it is the primary.
341+
338342
* - :dbcommand:`isMaster`
339343

340-
- Displays information about this member's role in the replica set, including whether it is the master.
344+
- *Deprecated*. Use :dbcommand:`hello` instead.
341345

342346
* - :dbcommand:`replSetAbortPrimaryCatchUp`
343347

0 commit comments

Comments
 (0)