Skip to content

Commit 03690b2

Browse files
committed
VK review
1 parent 0b9ba11 commit 03690b2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

source/upgrade.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,25 @@ Version 5.0 Breaking Changes
126126
replica set name, regardless of how it is configured. Previously, replica set
127127
name was only considered if it was set by the connection string.
128128

129+
For example, the following two code samples return the value ``ClusterConnectionMode.MULTIPLE``
130+
131+
.. code-block:: java
132+
133+
ClusterSettings.builder()
134+
.applyConnectionString(new ConnectionString("mongodb://127.0.0.1:27017/?replicaSet=replset"))
135+
.build()
136+
.getMode()
137+
138+
.. code-block:: java
139+
140+
ClusterSettings.builder()
141+
.hosts(Collections.singletonList(
142+
new ServerAddress("127.0.0.1", 27017)
143+
))
144+
.requiredReplicaSetName("replset")
145+
.build()
146+
.getMode()
147+
129148
- This driver changes how ``BsonDecimal128`` values respond to method calls, by
130149
responding in the same way as ``Decimal128`` values. In particular,
131150
``BsonDecimal128.isNumber()`` now returns ``true``, and

0 commit comments

Comments
 (0)