Skip to content

Commit d6b17d6

Browse files
authored
RUBY-3549: Updated specification links from RST to MD (mongodb#2898)
1 parent 40f92de commit d6b17d6

File tree

22 files changed

+27
-27
lines changed

22 files changed

+27
-27
lines changed

lib/mongo/auth/aws/conversation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Aws
2222
# Defines behavior around a single MONGODB-AWS conversation between the
2323
# client and server.
2424
#
25-
# @see https://github.com/mongodb/specifications/blob/master/source/auth/auth.rst#mongodb-aws
25+
# @see https://github.com/mongodb/specifications/blob/master/source/auth/auth.md#mongodb-aws
2626
#
2727
# @api private
2828
class Conversation < SaslConversationBase

lib/mongo/client_encryption.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def create_encrypted_collection(database, coll_name, coll_opts, kms_provider, ma
294294
def create_data_keys(encrypted_fields, kms_provider, master_key)
295295
encrypted_fields = encrypted_fields.dup
296296
# We must return the partially formed encrypted_fields hash if an error
297-
# occurs - https://github.com/mongodb/specifications/blob/master/source/client-side-encryption/client-side-encryption.rst#create-encrypted-collection-helper
297+
# occurs - https://github.com/mongodb/specifications/blob/master/source/client-side-encryption/client-side-encryption.md#create-encrypted-collection-helper
298298
# Thefore, we do this in a loop instead of using #map.
299299
encrypted_fields[:fields].size.times do |i|
300300
field = encrypted_fields[:fields][i]

lib/mongo/cluster/sdam_flow.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def update_server_descriptions
6868
if server.address == updated_desc.address
6969
# SDAM flow must be run when topology version in the new description
7070
# is equal to the current topology version, per the example in
71-
# https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#what-is-the-purpose-of-topologyversion
71+
# https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.md#what-is-the-purpose-of-topologyversion
7272
unless updated_desc.topology_version_gte?(server.description)
7373
return false
7474
end

lib/mongo/collection/view/aggregation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def initial_query_op(session, read_preference)
9292
# aggregation will be routed to primary. Otherwise return the original
9393
# read preference.
9494
#
95-
# See https://github.com/mongodb/specifications/blob/master/source/crud/crud.rst#read-preferences-and-server-selection
95+
# See https://github.com/mongodb/specifications/blob/master/source/crud/crud.md#read-preferences-and-server-selection
9696
#
9797
# @param [ Server::Connection ] connection The connection which
9898
# will be used for the operation.

lib/mongo/cursor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def get_more
395395
# Legacy retryable read logic used to retry getMores, but since
396396
# doing so may result in silent data loss, the driver no longer retries
397397
# getMore operations in any circumstance.
398-
# https://github.com/mongodb/specifications/blob/master/source/retryable-reads/retryable-reads.rst#qa
398+
# https://github.com/mongodb/specifications/blob/master/source/retryable-reads/retryable-reads.md#qa
399399
process(execute_operation(get_more_operation))
400400
end
401401

lib/mongo/error/sdam_error_detection.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module SdamErrorDetection
2222

2323
# Whether the error is a "not master" error, or one of its variants.
2424
#
25-
# See https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#not-master-and-node-is-recovering.
25+
# See https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.md#not-writable-primary-and-node-is-recovering
2626
#
2727
# @return [ true | false ] Whether the error is a not master.
2828
#
@@ -45,7 +45,7 @@ def not_master?
4545

4646
# Whether the error is a "node is recovering" error, or one of its variants.
4747
#
48-
# See https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#not-master-and-node-is-recovering.
48+
# See https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.md#not-writable-primary-and-node-is-recovering
4949
#
5050
# @return [ true | false ] Whether the error is a node is recovering.
5151
#
@@ -66,7 +66,7 @@ def node_recovering?
6666

6767
# Whether the error is a "node is shutting down" type error.
6868
#
69-
# See https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#not-master-and-node-is-recovering.
69+
# See https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.md#not-writable-primary-and-node-is-recovering
7070
#
7171
# @return [ true | false ] Whether the error is a node is shutting down.
7272
#

lib/mongo/lint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def validate_camel_case_read_preference_mode(mode)
5757

5858
# Validates the provided hash as a read concern object, per the
5959
# read/write concern specification
60-
# (https://github.com/mongodb/specifications/blob/master/source/read-write-concern/read-write-concern.rst#read-concern).
60+
# (https://github.com/mongodb/specifications/blob/master/source/read-write-concern/read-write-concern.md#read-concern).
6161
#
6262
# This method also accepts nil as input for convenience.
6363
#

lib/mongo/monitoring.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def publish_heartbeat(server, awaited: false)
319319
# the time spent on the entire heartbeat. This could include time
320320
# to connect the socket (including TLS handshake), not just time
321321
# spent on hello call itself.
322-
# The spec at https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring-monitoring.rst
322+
# The spec at https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring.md
323323
# requires that the duration exposed here start from "sending the
324324
# message" (hello). This requirement does not make sense if,
325325
# for example, we were never able to connect to the server at all

lib/mongo/monitoring/event/secure.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def sensitive?(command_name:, document:)
5858
# According to Command Monitoring spec,for hello/legacy hello commands
5959
# when speculativeAuthenticate is present, their commands AND replies
6060
# MUST be redacted from the events.
61-
# See https://github.com/mongodb/specifications/blob/master/source/command-logging-and-monitoring/command-logging-and-monitoring.rst#security
61+
# See https://github.com/mongodb/specifications/blob/master/source/command-logging-and-monitoring/command-logging-and-monitoring.md#security
6262
true
6363
else
6464
false

lib/mongo/operation/shared/read_preference_supported.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def options(connection)
5757
#
5858
# @return [ true | false ] Whether the :secondary_ok flag should be added.
5959
def add_secondary_ok_flag?(connection)
60-
# https://github.com/mongodb/specifications/blob/master/source/server-selection/server-selection.rst#topology-type-single
60+
# https://github.com/mongodb/specifications/blob/master/source/server-selection/server-selection.md#topology-type-single
6161
if connection.description.standalone?
6262
# Read preference is never sent to standalones.
6363
false
@@ -83,7 +83,7 @@ def command(connection)
8383
#
8484
# $readPreference is only sent when the server is a mongos,
8585
# following the rules described in
86-
# https://github.com/mongodb/specifications/blob/master/source/server-selection/server-selection.rst#passing-read-preference-to-mongos.
86+
# https://github.com/mongodb/specifications/blob/master/source/server-selection/server-selection.md#passing-read-preference-to-mongos.
8787
# The topology does not matter for figuring out whether to send
8888
# $readPreference since the decision is always made based on
8989
# server type.

0 commit comments

Comments
 (0)