@@ -6,8 +6,9 @@ It is my pleasure to announce the beta release of mongo-c-driver 1.5.0.
6
6
New features and bug fixes:
7
7
* MongoDB 3.4 Support
8
8
* New URI and read preference option, "maxStalenessSeconds"
9
- * MongoDB Handshake
10
- * writeConcern and readConcern enhancements
9
+ * Set MongoDB client handshake data with mongoc_client_set_appname or
10
+ mongoc_client_pool_set_appname.
11
+ * writeConcern and readConcern enhancements.
11
12
* Collation allows users to specify language-specific rules for string
12
13
comparison when sorting documents. See the code examples for
13
14
mongoc_client_read_command_with_opts, mongoc_collection_count_with_opts,
@@ -23,6 +24,10 @@ New features and bug fixes:
23
24
* Additional features for Application Performance Monitoring:
24
25
* mongoc_topology_description_has_writable_server
25
26
* mongoc_topology_description_has_readable_server
27
+ * Notifications when a server or topology description changes, and when a
28
+ monitoring heartbeat begins and succeeds or fails.
29
+ * mongoc_client_set_apm_callbacks can be used repeatedly to change or clear
30
+ the list of monitoring callbacks.
26
31
* New functions accept flexible options as a BSON document:
27
32
* mongoc_collection_find_with_opts
28
33
* mongoc_client_read_command_with_opts
@@ -36,6 +41,11 @@ New features and bug fixes:
36
41
* mongoc_collection_read_write_command_with_opts
37
42
* mongoc_gridfs_find_with_opts
38
43
* mongoc_gridfs_find_one_with_opts
44
+ * mongoc_bulk_operation_remove_one_with_opts
45
+ * mongoc_bulk_operation_remove_many_with_opts
46
+ * mongoc_bulk_operation_replace_one_with_opts
47
+ * mongoc_bulk_operation_update_one_with_opts
48
+ * mongoc_bulk_operation_update_many_with_opts
39
49
* mongoc_collection_find is now deprecated in favor of
40
50
mongoc_collection_find_with_opts.
41
51
* New helper function to include read concern in one of the above function's
@@ -73,7 +83,10 @@ New features and bug fixes:
73
83
* Bugfix: "PossiblePrimary"-type replicas could be selected for reads
74
84
* Bugfixes: The random number generator used to select servers is now properly
75
85
seeded, and secondary queries are now properly distributed according to
76
- localThresholdMS, not just to the lowest-latency secondary.
86
+ localThresholdMS, not just to the lowest-latency secondary. The latency
87
+ estimate is reset after a connection error.
88
+ * Fix crashes in mongoc_topology_invalidate_server and
89
+ mongoc_client_kill_cursor.
77
90
* mongoc_collection_insert, mongoc_collection_update, mongoc_collection_remove
78
91
consistently use domain MONGOC_ERROR_BSON, code MONGOC_ERROR_BSON_INVALID
79
92
if passed oversized BSON, and MONGOC_ERROR_COLLECTION for other errors.
@@ -83,9 +96,8 @@ New features and bug fixes:
83
96
it logs and aborts instead of silently continuing, then failing to connect.
84
97
* The driver now updates its view of the whole topology with information from
85
98
each new connection handshake.
86
- * mongoc_client_set_apm_callbacks can be used repeatedly to change or clear
87
- the list of monitoring callbacks.
88
- * Improved error reporting when the driver fails to reach the server.
99
+ * Improved error reporting when the driver fails to reach the server, and
100
+ correctly distinguish "connection error" and "connection timeout".
89
101
90
102
Deprecations:
91
103
* mongoc_collection_find is deprecated for mongoc_collection_find_with_opts.
0 commit comments