Skip to content

Commit cf31f5b

Browse files
RUBY-2641 Remove master terminology (continued) (#2253)
1 parent 76c2cfa commit cf31f5b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

source/reference/database-tasks.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To execute any command on the database, use the ``command`` method.
4141
client = Mongo::Client.new([ '127.0.0.1:27017' ], database: 'music')
4242
database = client.database
4343

44-
result = database.command(:ismaster => 1)
44+
result = database.command(:ping => 1)
4545
result.first # Returns the BSON::Document returned from the server.
4646

4747
.. note::

source/reference/monitoring.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ Sample output:
9191

9292
.. code-block:: none
9393

94-
D, [2018-09-23T13:47:31.258020 #4692] DEBUG -- : COMMAND | 127.0.0.1:27027 | test.ismaster | STARTED | {"ismaster"=>1, "$readPreference"=>{"mode"=>"primary"}, "lsid"=>{"id"=><BSON::Binary:0x47111693353080 type=uuid data=0x730341e880dc40a2...>}}
95-
D, [2018-09-23T13:47:31.259145 #4692] DEBUG -- : COMMAND | 127.0.0.1:27027 | test.ismaster | SUCCEEDED | 0.000791175s
94+
D, [2018-09-23T13:47:31.258020 #4692] DEBUG -- : COMMAND | 127.0.0.1:27027 | test.hello | STARTED | {"hello"=>1, "$readPreference"=>{"mode"=>"primary"}, "lsid"=>{"id"=><BSON::Binary:0x47111693353080 type=uuid data=0x730341e880dc40a2...>}}
95+
D, [2018-09-23T13:47:31.259145 #4692] DEBUG -- : COMMAND | 127.0.0.1:27027 | test.hello | SUCCEEDED | 0.000791175s
9696

9797

9898
.. _sdam:
@@ -293,10 +293,10 @@ method depending on the outcome of the heartbeat.
293293

294294
All heartbeat events contain the address of the server that the heartbeat
295295
was sent to. Succeeded and failed events contain the round trip time for
296-
the ismaster command. Failed event also contains the exception instance that
297-
was raised during ismaster command execution. Please review the API
298-
documentation for ServerHeartbeatStarted, ServerHeartbeatSucceeded and
299-
ServerHeartbeatFailed for event attribute details.
296+
the hello or legacy hello command. Failed event also contains the exception
297+
instance that was raised during hello or legacy hello command execution.
298+
Please review the API documentation for ServerHeartbeatStarted,
299+
ServerHeartbeatSucceeded and ServerHeartbeatFailed for event attribute details.
300300

301301
The following is an example logging heartbeat event subscriber:
302302

0 commit comments

Comments
 (0)