Skip to content

Commit a01400e

Browse files
committed
DOCSP-8628: Document new 'hello' command
1 parent a77fa50 commit a01400e

22 files changed

+437
-35
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
@@ -135,15 +135,15 @@ Confirm Connection to ``mongos`` Instances
135135
------------------------------------------
136136

137137
To detect if the MongoDB instance that your client is connected
138-
to is :binary:`~bin.mongos`, use the :dbcommand:`isMaster` command. When a
139-
client connects to a :binary:`~bin.mongos`, :dbcommand:`isMaster` returns
138+
to is :binary:`~bin.mongos`, use the :dbcommand:`hello` command. When a
139+
client connects to a :binary:`~bin.mongos`, :dbcommand:`hello` returns
140140
a document with a ``msg`` field that holds the string
141141
``isdbgrid``. For example:
142142

143143
.. code-block:: javascript
144144

145145
{
146-
"ismaster" : true,
146+
"isWritablePrimary" : true,
147147
"msg" : "isdbgrid",
148148
"maxBsonObjectSize" : 16777216,
149149
"ok" : 1,

source/includes/extracts-transactions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ content: |
9999
ref: transactions-operations-restrictions-info
100100
content: |
101101
102-
Informational commands, such as :dbcommand:`isMaster`,
102+
Informational commands, such as :dbcommand:`hello`,
103103
:dbcommand:`buildInfo`, :dbcommand:`connectionStatus` (and their
104104
helper methods) are allowed in transactions; however, they cannot be
105105
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 Operation Limit Size>`,

source/reference/command.txt

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

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

362+
* - :dbcommand:`hello`
363+
364+
- Displays information about this member's role in the replica set, including whether it is the primary.
365+
362366
* - :dbcommand:`isMaster`
363367

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

366370
* - :dbcommand:`replSetAbortPrimaryCatchUp`
367371

0 commit comments

Comments
 (0)