forked from mongodb/mongo-c-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNEWS
1584 lines (1178 loc) · 51 KB
/
NEWS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
mongo-c-driver 1.5.0
====================
It is my pleasure to announce the beta release of mongo-c-driver 1.5.0.
New features and bug fixes:
* MongoDB 3.4 Support
* MaxStalenessMS
* MongoDB Handshake
* mongoc_collection_count_with_opts uses the collection's read preference if
none is passed in
* Improved TLS support
* Fixed LibreSSL (libssl) support
* Added LibreSSL (libtls) support
* Additional features for Application Performance Monitoring:
* mongoc_topology_description_has_writable_server
* mongoc_topology_description_has_readable_server
* connectTimeoutMS timer now begins after DNS resolution, and resets
for each interface attempted (e.g., if the driver first tries IPv6,
then IPv4).
* mongoc_collection_find no longer treats the "filter" key specially in
queries - querying for a document with a key named "filter" is the same
now as any other key.
* The server description parameter to the following functions is "const":
* mongoc_server_description_host
* mongoc_server_description_id
* mongoc_server_description_ismaster
* mongoc_server_description_round_trip_time
* mongoc_server_description_type
Thanks to everyone who contributed to the development of this release.
* Everyone
Farewell,
A. Jesse Jiryu Davis
mongo-c-driver 1.4.0
====================
It is my pleasure to announce the release of mongo-c-driver 1.4.0.
TLS
---
The driver can now use the native TLS and crypto functions included in Mac OS X
and Windows. OpenSSL is no longer required for TLS or authentication on Mac or
Windows. By default, OpenSSL is used if available, the default will switch in
version 2.0 to prefer native TLS.
For native TLS on Mac:
./configure --enable-ssl=darwin
For Windows:
cmake "-DENABLE_SSL=WINDOWS" -G "Visual Studio 10 Win64" "-DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver"
All of the TLS implementations now load the native default certificate store,
with OpenSSL on Windows falling back on the Windows native certificate store if
no other can be found.
The "ca_dir" field on mongoc_ssl_opt_t is only supported by OpenSSL. All other
fields, including "pem_file", are supported by all implementations.
A new field, "allow_invalid_hostname", has been added to mongoc_ssl_opt_t and is
preferred over the existing "allow_invalid_certificate" to disable hostname
verification.
The driver now supports the latest OpenSSL 1.1 in addition to past versions.
Application Performance Monitoring
----------------------------------
The driver implements the MongoDB Command Monitoring Spec. Applications can
record the duration and other details of every operation the driver performs on
the server. See "Introduction to Application Performance Monitoring" in the
docs.
Error API
---------
New functions mongoc_client_set_error_api and mongoc_client_pool_set_error_api
allow applications to distinguish client and server errors. See the "Error
Reporting" doc.
Unacknowledged Write Results
----------------------------
Unacknowledged writes (writes whose mongoc_write_concern_t "w" value is zero)
now reply with an empty document instead of one with nInserted: 0, nUpdated: 0,
and so on.
Command functions now ignore the read preferences set on a client, database,
or collection. Instead, they use the mongoc_read_prefs_t passed in explicitly,
or default to "primary". This change was made to bring them in line with the
Server Selection Spec. These are the affected functions:
* mongoc_client_command
* mongoc_client_command_simple
* mongoc_database_command
* mongoc_database_command_simple
* mongoc_collection_command
* mongoc_collection_command_simple
On the other hand, the following command-specific helper functions now use the
collection's read preference:
* mongoc_collection_count
* mongoc_collection_stats
New functions to send maxTimeMS or any arbitrary options with findAndModify:
* mongoc_find_and_modify_opts_set_max_time_ms
* mongoc_find_and_modify_opts_append
New function to include a write concern with a generic command function
like mongoc_client_command_simple:
* mongoc_write_concern_append
Public API For Higher-Level Drivers
-----------------------------------
New functions support language drivers (specifically the PHP and HHVM drivers)
using only the libmongoc public API:
* mongoc_bulk_operation_get_hint
* mongoc_client_command_simple_with_server_id
* mongoc_client_get_server_description
* mongoc_client_get_server_description_by_id
* mongoc_client_get_server_descriptions
* mongoc_client_select_server
* mongoc_cursor_get_limit
* mongoc_cursor_new_from_command_reply
* mongoc_cursor_set_hint
* mongoc_cursor_set_limit
* mongoc_log_trace_disable
* mongoc_log_trace_enable
* mongoc_server_description_ismaster
* mongoc_server_description_round_trip_time
* mongoc_server_description_type
* mongoc_server_descriptions_destroy_all
* mongoc_uri_get_option_as_bool
* mongoc_uri_get_option_as_int32
* mongoc_uri_get_option_as_utf8
* mongoc_uri_option_is_bool
* mongoc_uri_option_is_int32
* mongoc_uri_option_is_utf8
* mongoc_uri_set_auth_source
* mongoc_uri_set_database
* mongoc_uri_set_option_as_bool
* mongoc_uri_set_option_as_int32
* mongoc_uri_set_option_as_utf8
* mongoc_uri_set_password
* mongoc_uri_set_read_concern
* mongoc_uri_set_read_prefs_t
* mongoc_uri_set_username
* mongoc_uri_set_write_concern
* mongoc_write_concern_is_acknowledged
* mongoc_write_concern_is_valid
* mongoc_write_concern_journal_is_set
Now that these public APIs are available, the PHP drivers no longer define the
MONGOC_I_AM_A_DRIVER preprocessor symbol to access private APIs. The symbol is
removed from C Driver headers, and libmongoc-priv.so is no longer installed.
Other Features
--------------
* New connection string option "localThresholdMS".
* zSeries and POWER8 platform support.
* Performance enhancements, reduce allocation and copying in command code.
* All man page names now begin with "mongoc_" to avoid install conflicts.
* New function mongoc_gridfs_file_set_id.
Deprecations
------------
Automatically calling mongoc_init and mongoc_cleanup is a GCC-specific feature
that is now deprecated, and will be removed in version 2. The driver should be
built with:
./configure --disable-automatic-init-and-cleanup
Or:
cmake "-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF" -G "Visual Studio 10 Win64" "-DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver"
In this configuration, applications must explicitly init and cleanup libmongoc.
Deprecated functions:
* mongoc_write_concern_get_fsync
* mongoc_write_concern_set_fsync
Notable Bug Fixes
-----------------
* Logic bugs using tag sets to select replica set members with complex configs
* mongoc_client_get_database_names no longer filters out a replica set
member's "local" database.
* mongoc_client_get_gridfs now ensures the proper indexes on the files and
chunks collections.
* SecondaryPreferred fails if primary matches tags but secondaries don't.
* mongoc_collection_find_and_modify_with_opts can return true on
writeConcernError.
* mongoc_collection_validate doesn't always init "reply".
* The strings referred to by mongoc_ssl_opt_t, like pem_file and ca_file, are
now copied into the client or client pool by mongoc_client_set_ssl_opts or
mongoc_client_pool_set_ssl_opts, and need not be kept valid afterward.
* mongoc_collection_count_with_opts ignored flags and read_prefs.
* minPoolSize of 0 should mean "no minimum".
* mongoc_database_create_collection should always use the primary.
* The GSSAPI properties SERVICE_NAME and CANONICALIZE_HOST_NAME are now
properly parsed from the URI, see the "Authentication" doc for details.
* Comprehensive compatibility with various C standards and compilers.
Acknowledgments
---------------
Thanks to everyone who contributed to the development of this release.
* A. Jesse Jiryu Davis
* Hannes Magnusson
* Ian Boros
* Fiona Rowan
* Jeremy Mikola
* Christoph Schwarz
* Mike Lloyd
* Remi Collet
* Jean-Bernard Jansen
* David Hatch
* Derick Rethans
* Brian Samek
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.3.5
====================
It is my pleasure to announce mongo-c-driver 1.3.5. This release fixes a crash
in mongoc_cleanup when an allocator had been set with bson_mem_set_vtable, and
introduces a configure option MONGOC_NO_AUTOMATIC_GLOBALS which prevents code
built with GCC from automatically calling mongoc_init and mongoc_cleanup when
your code does not.
Thanks to everyone who contributed to the development of this release.
* A. Jesse Jiryu Davis
* Hannes Magnusson
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.3.4
====================
It is my pleasure to announce the MongoDB C Driver 1.3.4. This release fixes a
security vulnerability: when a mongoc_client_t uses SSL and is disconnected, it
failed to re-verify the server certificate after reconnecting. This flaw affects
single clients, not pooled ones.
Thanks to everyone who contributed to the development of this release.
* A. Jesse Jiryu Davis
* Hannes Magnusson
* Remi Collet
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.3.3
====================
It is my pleasure to announce MongoDB C Driver 1.3.3. This fixes a bug where
a slightly-oversized bulk write operation was not split into batches; instead,
it was sent whole to the server, which rejected it.
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.3.2
====================
It is my pleasure to announce MongoDB C Driver 1.3.2. This is a bugfix release:
* A socket is properly discarded after a network error from a command.
* mongoc_database_get_collection now copies the database's read preferences,
read concern, and write concern, instead of copying the client's.
* mongoc_cursor_t's private struct now allows a negative limit.
Thanks to everyone who contributed to this release.
* A. Jesse Jiryu Davis
* Jeremy Mikola
* Hannes Magnusson
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.3.1
====================
It is my pleasure to announce MongoDB C Driver 1.3.1. This is a bugfix release:
* mongoc_client_get_gridfs now copies the client's read preferences, read
concern, and write concern to the newly created mongoc_gridfs_t. Before
this fix, GridFS operations were always executed with the default config:
data was read from the primary, with the read concern level "local", and
written with write concern "acknowledged". Now, if you have configured any
of these options on the mongoc_client_t, they are respected by the
mongoc_gridfs_t.
* CMakeLists.txt now includes and installs the pkg-config files.
Thanks to everyone who contributed to this release.
* A. Jesse Jiryu Davis
* Hannes Magnusson
* Christopher Wang
* Jean-Bernard Jansen
* Jeremy Mikola
* Jeroen Ooms
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.3.0
====================
It is my pleasure to announce to you the release of the MongoDB C Driver 1.3.0.
Changes since the the release candidate 1.3.0-rc0:
* Fix a cursor bug introduced on big-endian platforms in 1.3.0-beta0.
* Improve documentation for mongoc_host_list_t.
* Move private mongoc_host_list_t functions from public header.
* Refactor the build system to declare library version in one place.
All new features and changes since the previous stable release, 1.2.1:
* If the driver is compiled without SSL support but a URI with "ssl=true"
is passed to mongoc_client_new, mongoc_client_new_from_uri, or
mongoc_client_pool_new, the function logs an error and returns NULL. Before,
the driver would attempt a non-SSL connection.
* mongoc_collection_find_and_modify will now apply the mongoc_collection_t's
write_concern_t when talking to MongoDB 3.2.
* Support for MongoDB 3.2's "readConcern" feature for queries, counts, and
aggregations. The option "readConcernLevel" is now accepted in the MongoDB
URI. New struct mongoc_read_concern_t, and functions operating on it:
- mongoc_client_get_read_concern
- mongoc_client_set_read_concern
- mongoc_database_get_read_concern
- mongoc_database_set_read_concern
- mongoc_collection_get_read_concern
- mongoc_collection_set_read_concern
- mongoc_read_concern_copy
- mongoc_read_concern_destroy
- mongoc_read_concern_get_level
- mongoc_read_concern_new
- mongoc_read_concern_set_level
- mongoc_uri_get_read_concern
* Support for MongoDB 3.2's "bypassDocumentValidation" option for writes.
* New struct mongoc_bulk_write_flags_t and related functions:
- mongoc_bulk_operation_set_bypass_document_validation
* New struct mongoc_find_and_modify_opts_t and related functions:
- mongoc_find_and_modify_opts_new
- mongoc_find_and_modify_opts_destroy
- mongoc_find_and_modify_opts_set_sort
- mongoc_find_and_modify_opts_set_update
- mongoc_find_and_modify_opts_set_fields
- mongoc_find_and_modify_opts_set_flags
- mongoc_find_and_modify_opts_set_bypass_document_validation
- mongoc_collection_find_and_modify_with_opts
* New functions to copy database and collection handles:
- mongoc_collection_copy
- mongoc_database_copy
* Support for MongoDB 3.2 wire protocol: use commands in place of OP_QUERY,
OP_GETMORE, and OP_KILLCURSORS messages.
* To explain a query plan with MongoDB 3.2, you must now call the "explain"
command, instead of including the "$explain" key in a mongoc_collection_find
query. See the mongoc_collection_find documentation page for details.
* Configurable wait time on tailable cursors with MongoDB 3.2:
- mongoc_cursor_get_max_await_time_ms
- mongoc_cursor_set_max_await_time_ms
* Use electionId to detect a stale replica set primary during a network split.
* Disconnect from replica set members whose "me" field does not match the
connection address.
* The client side matching feature, mongoc_matcher_t and related functions,
are deprecated and scheduled for removal in version 2.0.
* New CMake options ENABLE_SSL, ENABLE_SASL, ENABLE_TESTS, and ENABLE_EXAMPLES.
* Use constant-time comparison when verifying credentials.
* Combine environment's CFLAGS with configure options when building.
* Improved man page output and "whatis" entries.
There are extensive bugfixes and improvements in GridFS since 1.2.1, including:
* Handle seeking, reading, and writing past the end of a GridFS file.
* If a GridFS chunk is missing, mongoc_gridfs_file_readv sets file->error to
domain MONGOC_ERROR_GRIDFS and a new code MONGOC_ERROR_GRIDFS_CHUNK_MISSING.
* Optimization for long seeks forward with mongoc_gridfs_file_seek.
Other fixes since 1.2.1:
* Memory leaks in mongoc_database_has_collection and mongoc_cursor_next.
* Report writeConcern failures from findAndModify and from legacy writes.
* Memory leak in mongoc_database_find_collections.
* Set OP_QUERY's nToReturn from the provided limit.
* Fix compiler warnings and errors, especially with Visual Studio 2015,
GCC 4.8, and IBM XL C.
* Bugs and typos in tutorial examples.
Thanks to everyone who contributed to this release.
* A. Jesse Jiryu Davis
* Hannes Magnusson
* Kyle Suarez
* Jose Sebastian Battig
* Matt Cotter
* Claudio Canella
* alexeyvo
* Christopher Wang
* Flavio Medeiros
* Iago Rubio
* Jeremy Mikola
* Victor Leschuk
* Jason Carey
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.3.0-rc0
========================
It is my pleasure to announce to you the first release candidate of MongoDB C
driver 1.3.0. It includes additive ABI changes and bugfixes, and support for
the upcoming MongoDB 3.2. It is compatible with MongoDB 2.4 and later.
New features and changes since 1.3.0-beta0:
* If the driver is compiled without SSL support but a URI with "ssl=true"
is passed to mongoc_client_new, mongoc_client_new_from_uri, or
mongoc_client_pool_new, the function logs an error and returns NULL. Before,
the driver would attempt a non-SSL connection.
* New functions to copy database and collection handles:
- mongoc_collection_copy
- mongoc_database_copy
* If a GridFS chunk is missing, mongoc_gridfs_file_readv sets file->error to
domain MONGOC_ERROR_GRIDFS and a new code MONGOC_ERROR_GRIDFS_CHUNK_MISSING.
* Use electionId to detect a stale replica set primary during a network split.
* Disconnect from replica set members whose "me" field does not match the
connection address.
* The client side matching feature, mongoc_matcher_t and related functions,
are deprecated and scheduled for removal in version 2.0.
* New CMake options ENABLE_SSL, ENABLE_SASL, ENABLE_TESTS, and ENABLE_EXAMPLES.
* The build system is refactored to declare the current version and latest
release in one place.
Other fixes:
* Memory leaks in mongoc_database_has_collection and mongoc_cursor_next.
* Report writeConcern failures from findAndModify and from legacy writes.
Thanks to everyone who contributed to this release candidate.
* A. Jesse Jiryu Davis
* Hannes Magnusson
* Matt Cotter
* Claudio Canella
* Victor Leschuk
* Flavio Medeiros
* Christopher Wang
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.3.0-beta0
==========================
It is my pleasure to announce to you the beta of MongoDB C driver 1.3.0.
This beta includes additive ABI changes and bugfixes, and support for
the upcoming MongoDB 3.2. It is compatible with MongoDB 2.4 and later.
New features and changes:
* mongoc_collection_find_and_modify will now apply the mongoc_collection_t's
write_concern_t when talking to MongoDB 3.2.
* Support for MongoDB 3.2's "readConcern" feature for queries, counts, and
aggregations. The option "readConcernLevel" is now accepted in the MongoDB
URI. New struct mongoc_read_concern_t, and functions operating on it:
- mongoc_client_get_read_concern
- mongoc_client_set_read_concern
- mongoc_database_get_read_concern
- mongoc_database_set_read_concern
- mongoc_collection_get_read_concern
- mongoc_collection_set_read_concern
- mongoc_read_concern_copy
- mongoc_read_concern_destroy
- mongoc_read_concern_get_level
- mongoc_read_concern_new
- mongoc_read_concern_set_level
- mongoc_uri_get_read_concern
* Support for MongoDB 3.2's "bypassDocumentValidation" option for writes.
* New struct mongoc_bulk_write_flags_t and related functions:
- mongoc_bulk_operation_set_bypass_document_validation
* New struct mongoc_find_and_modify_opts_t and related functions:
- mongoc_find_and_modify_opts_new
- mongoc_find_and_modify_opts_destroy
- mongoc_find_and_modify_opts_set_sort
- mongoc_find_and_modify_opts_set_update
- mongoc_find_and_modify_opts_set_fields
- mongoc_find_and_modify_opts_set_flags
- mongoc_find_and_modify_opts_set_bypass_document_validation
- mongoc_collection_find_and_modify_with_opts
* Configurable wait time on tailable cursors with MongoDB 3.2:
- mongoc_cursor_get_max_await_time_ms
- mongoc_cursor_set_max_await_time_ms
* Support for MongoDB 3.2 wire protocol: use commands in place of OP_QUERY,
OP_GETMORE, and OP_KILLCURSORS messages.
* To explain a query plan with MongoDB 3.2, you must now call the "explain"
command, instead of including the "$explain" key in a mongoc_collection_find
query. See the mongoc_collection_find documentation page for details.
* Use constant-time comparison when verifying credentials.
* Combine environment's CFLAGS with configure options when building.
* Improved man page output and "whatis" entries.
Extensive bugfixes and improvements in GridFS, including:
* Handle seeking, reading, and writing past the end of a GridFS file.
* Optimization for long seeks forward with mongoc_gridfs_file_seek.
Other fixes:
* Memory leak in mongoc_database_find_collections.
* Set OP_QUERY's nToReturn from the provided limit.
* Fix compiler warnings and errors, especially with Visual Studio 2015,
GCC 4.8, and IBM XL C.
* Bugs and typos in tutorial examples
Thanks to everyone who contributed to this beta release.
* A. Jesse Jiryu Davis
* Hannes Magnusson
* Kyle Suarez
* Jose Sebastian Battig
* Jeremy Mikola
* Iago Rubio
* Matt Cotter
* alexeyvo
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.2.2
====================
It is my pleasure to announce to you the MongoDB C driver 1.2.2.
This release fixes a rare bug where the driver can direct reads to hidden
secondaries unintentionally. It also includes fixes and improvements to the
build system.
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.2.1
====================
It is my pleasure to announce to you the MongoDB C driver 1.2.1.
This release includes critical bugfixes for SSL connections with
mongoc_client_pool_t, and for Unix domain socket connections.
The documentation is updated for a change introduced in version 1.2.0:
mongoc_client_set_ssl_opts and mongoc_client_pool_set_ssl_opts now configure
the driver to require an SSL connection to the server, even if "ssl=true" is
omitted from the MongoDB URI. Before, SSL options were ignored unless
"ssl=true" was included in the URI.
The build instructions are improved, including the steps to build with OpenSSL
on OS X El Capitan. Build errors and warnings are fixed for clang in gnu99
mode and MinGW.
Thanks to everyone who contributed to this version of libmongoc.
* A. Jesse Jiryu Davis
* Hannes Magnusson
* Tamas Nagy
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.2.0
====================
It is my pleasure to announce to you the MongoDB C driver 1.2.0.
This is a stable release with additive ABI changes and bugfixes. It is
compatible with MongoDB version 2.4 and later.
The following notes summarize changes since the previous stable release,
1.1.11, including changes in the 1.2.0 betas and release candidate.
This version rewrites mongoc_client_t's internals to match two important new
specs for MongoDB drivers: the Server Discovery And Monitoring Spec and the
Server Selection Spec. The rewritten client has many advantages:
* All replica set members or mongos servers are discovered and periodically
checked in parallel. The driver's performance is dramatically better and
more predictable with multi-server deployments, or with a flaky network,
or when some servers are slow or down.
* Clients from the same mongoc_client_pool_t share a background thread that
discovers and monitors all servers in parallel.
* Unnecessary round trips for server checks and pings are eliminated.
* Behavior is documented in the specs, and consistent with other drivers,
even in complex or unusual scenarios.
* The URI's "replicaSet" option is enforced: the driver now refuses to connect
to a server unless it is a member of a replica set with the correct setName.
* Many race conditions related to changing deployment conditions are fixed.
To conform to the new specs, the client now accepts these options in the
MongoDB URI; see the mongoc_uri_t documentation for details:
* heartbeatFrequencyMS
* serverSelectionTimeoutMS
* serverSelectionTryOnce
* socketCheckIntervalMS
Other features:
* All timeouts that can be configured in the URI now interpret 0 to mean "use
the default value for this timeout".
* The client's read preference can be configured in the URI with the new
options "readPreference" and "readPreferenceTags"; see the mongoc_uri_t
documentation.
* The new mongoc_uri_get_read_prefs_t function retrieves both the read mode
and tags from a mongoc_uri_t.
* New accessors mongoc_gridfs_file_get_id, mongoc_client_get_default_database,
and mongoc_bulk_operation_get_write_concern.
* Debug tracing can be controlled at runtime with mongoc_log_trace_enable and
mongoc_log_trace_disable.
* Set mongoc_client_pool_t's size with mongoc_client_pool_min_size()
and mongoc_client_pool_max_size().
Other changes:
* Enable runtime asserts in release build.
* The libbson submodule's URL now uses the recommended https://, not git://
* mongoc_client_kill_cursor is now deprecated and will be removed in 2.0.
* The write concern "w=-1" is documented as obsolete.
These notable bugs have been fixed since 1.1.11:
* The driver now uses the server's maxWireVersion to avoid an error and
extra round-trip when executing aggregations on MongoDB 2.4 and older.
* Much improved reporting of network errors, unavailable servers, and
authentication failure
* Off-by-one error in mongoc_gridfs_file_seek with mode SEEK_END
* The writeConcernErrors field of bulk results is properly formatted.
* A cursor with a server "hint" sets slaveOkay and / or $readPreference.
* Destroying an exhaust cursor must close its socket
* "wtimeoutms" was ignored for write concerns besides "majority".
* Bulk write operations might fail in mixed-version sharded clusters with
some pre-2.6 mongos servers.
* A variety of bugs and incorrect results in mongoc_bulk_operation_execute.
* Numerous compiler warnings and build failures on various platforms.
* Copious refinements to the documentation.
Thanks to everyone who contributed to this version of libmongoc.
* Jason Carey
* Samantha Ritter
* A. Jesse Jiryu Davis
* Hannes Magnusson
* Kyle Suarez
* Jeremy Mikola
* Remi Collet
* Jose Sebastian Battig
* Derick Rethans
* Yuchen Xie
* Manuel Schoenlaub
* Sujan Dutta
* Lloyd Zhou
* rubicks
* Pawel Szczurko
* Yuval Hager
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.2.0-rc0
========================
It is my pleasure to announce the release candidate of the MongoDB C driver
1.2.0. It includes features and bugfixes developed since 1.2.0-beta1.
Notable bugs fixed:
* Much improved reporting of network errors, unavailable servers, and
authentication failure
* Destroying an exhaust cursor must close its socket
* Various bugs in server reconnection logic
* mongoc_collection_aggregate returned invalid cursor after failure
* Wrong error message after failed network write on Sparc
* Missing JSON test files in release tarball
Other changes:
* Enable runtime asserts in release build.
* mongoc_client_kill_cursor is now deprecated and will be removed in
version 2.0.
This release candidate also includes all bugfixes from 1.1.11.
Version 1.2.0 final will be a stable release with additive ABI changes and
bugfixes. It is compatible with MongoDB version 2.4 and later.
Thanks to everyone who contributed to this version of libmongoc.
* A. Jesse Jiryu Davis
* Hannes Magnusson
* Kyle Suarez
* rubicks
* Jose Sebastian Battig
* Jason Carey
* Remi Collet
* Yuval Hager
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.2.0-beta1
==========================
It is my pleasure to announce the second beta release of the MongoDB C driver
1.2.0. It includes features and bugfixes developed since 1.2.0-beta.
New features:
* Set mongoc_client_pool_t's size with mongoc_client_pool_min_size()
and mongoc_client_pool_max_size().
* The write concern "w=-1" is now documented as obsolete.
* Abundant fixes and additions to the documentation, beyond those in the
previous beta.
Notable bugs fixed:
* Crashes and races in several replica set scenarios.
* The driver now uses the server's maxWireVersion to avoid an error and
extra round-trip when executing aggregations on MongoDB 2.4 and older.
* Fixed network error handling in multiple code paths.
* connectTimeoutMS limits the time the driver can spend reconnecting to
servers in single-threaded (non-pooled) mode with serverSelectionTryOnce.
Version 1.2.0 final will be a stable release with additive ABI changes and
bugfixes. It is compatible with MongoDB version 2.4 and later.
Thanks to everyone who contributed to this version of libmongoc.
* A. Jesse Jiryu Davis
* Hannes Magnusson
* Manuel Schoenlaub
* Kyle Suarez
* Remi Collet
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.2.0-beta
=========================
It is my pleasure to announce to you the first beta release of the MongoDB C
driver 1.2.0.
This release is a stable release with additive ABI changes and bugfixes.
It is compatible with MongoDB version 2.4 and later.
Version 1.2.0 rewrites mongoc_client_t's internals to match two important new
specs for MongoDB drivers: the Server Discovery And Monitoring Spec and the
Server Selection Spec. The rewritten client has many advantages:
* All replica set members or mongoses are discovered and periodically
checked in parallel. The driver's performance is dramatically better and
more predictable with multi-server deployments, or with a flaky network,
or when some servers are slow or down.
* Clients from the same mongoc_client_pool_t share a background thread that
discovers and monitors all servers in parallel.
* Unnecessary round trips for server checks and pings are eliminated.
* Behavior is documented in the specs, and consistent with other drivers, even
in complex or unusual scenarios.
* The URI's "replicaSet" option is enforced: the driver now refuses to connect
to a server unless it is a member of a replica set with the right setName.
* Many race conditions related to changing deployment conditions are fixed.
To conform to the new specs, the client now accepts these options in the MongoDB
URI; see the mongoc_uri_t documentation for details:
* heartbeatFrequencyMS
* serverSelectionTimeoutMS
* serverSelectionTryOnce
* socketCheckIntervalMS
Other features:
* All timeouts that can be configured in the URI now interpret 0 to mean "use
the default value for this timeout".
* The client's read preference can be configured in the URI with the new
options "readPreference" and "readPreferenceTags", see the mongoc_uri_t
documentation.
* The new mongoc_uri_get_read_prefs_t function retrieves both the read mode
and tags from a mongoc_uri_t.
* New accessors mongoc_gridfs_file_get_id, mongoc_client_get_default_database,
and mongoc_bulk_operation_get_write_concern.
* Debug tracing can be controlled at runtime with mongoc_log_trace_enable and
mongoc_log_trace_disable.
Notable bugs fixed:
* "wtimeoutms" was ignored for write concerns besides "majority".
* Bulk write operations might fail in mixed-version sharded clusters with
some pre-2.6 mongos servers.
* Normal operations were logged during startup and could not be silenced.
* A variety of bugs and incorrect results in mongoc_bulk_operation_execute.
* Numerous compiler warnings and build failures on various platforms.
* Copious refinements to the documentation.
Thanks to everyone who contributed to this version of libmongoc.
* A. Jesse Jiryu Davis
* Sujan Dutta
* Jason Carey
* Hannes Magnusson
* Jeremy Mikola
* Derick Rethans
* Samantha Ritter
* Yuchen Xie
* Lloyd Zhou
Peace,
A. Jesse Jiryu Davis
It is my pleasure to announce to you the MongoDB C driver 1.1.11.
This is a patch release with bug fixes:
* Undetected network errors when sending messages to the server
* Off-by-one error in mongoc_gridfs_file_seek with mode SEEK_END
* Memory leak parsing a URI that contains an invalid option
* The libbson submodule's URL now uses the recommended https://, not git://
Thanks to everyone who contributed to the development of this point release for
libmongoc.
* A. Jesse Jiryu Davis
* Hannes Magnusson
* Jason Carey
* Jose Sebastian Battig
* rubicks
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.1.11
=====================
It is my pleasure to announce to you the MongoDB C driver 1.1.11.
This is a patch release with bug fixes:
* Undetected network errors when sending messages to the server
* Off-by-one error in mongoc_gridfs_file_seek with mode SEEK_END
* Memory leak parsing a URI that contains an invalid option
* The libbson submodule's URL now uses the recommended https://, not git://
Thanks to everyone who contributed to the development of this point release for
libmongoc.
* A. Jesse Jiryu Davis
* Hannes Magnusson
* Jason Carey
* Jose Sebastian Battig
* rubicks
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.1.10
=====================
It is my pleasure to announce to you the MongoDB C driver 1.1.10.
This is a patch release with bug fixes:
* Occasional crash reconnecting to replica set.
* Queries sent to recovering replica set members.
* Memory leak when calling ismaster on replica set members.
Thanks to everyone who contributed to the development of this point release for
libmongoc.
* A. Jesse Jiryu Davis
* Daniil Zaitsev
* Jason Carey
* Jeremy Mikola
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.1.9
====================
It is my pleasure to announce to you the MongoDB C driver 1.1.9.
This release fixes a common crash in 1.1.8, which itself was introduced while
fixing a rare crash in 1.1.7. For further details:
https://jira.mongodb.org/browse/CDRIVER-721
https://jira.mongodb.org/browse/CDRIVER-695
Thanks to everyone who contributed to the development of this point release for
libmongoc.
Peace,
A. Jesse Jiryu Davis
mongo-c-driver 1.1.8
====================
UPDATE: 1.1.8 suffered a severe new bug so I removed the release from GitHub:
https://jira.mongodb.org/browse/CDRIVER-721
This is a patch release with bug fixes:
* Crash freeing client after a replica set auth error.
* Compile error strict C89 mode.
mongo-c-driver 1.1.7
====================
It is my pleasure to announce to you the 1.1.7 release of the MongoDB C driver.
This is a patch release with bug fixes:
* Thread-safe use of Cyrus SASL library.
* Experimental support for building with CMake and SASL.
* Faster reconnection to replica set with some hosts down.
* Crash iterating a cursor after reconnecting to a replica set.
* Unchecked errors decoding invalid UTF-8 in MongoDB URIs.
* Fix error reporting from mongoc_client_get_database_names.
Thanks to everyone who contributed to the development of this point release for
libmongoc.
* A. Jesse Jiryu Davis
* Jason Carey
* Hannes Magnusson
Peace,