Deep sea

I'm pleased to announce version 1.3.1 of libbson and libmongoc, the libraries constituting the MongoDB C Driver. This is a run-of-the-mill bugfix release for you, unless you use GridFS with write concern, read concern, or read preference—in that case read carefully before upgrading.

libbson

  • bson_strnlen is off by one on Windows.
  • BSON_HAVE_STRNLEN config check used incorrectly.
  • Incompatibility with older CMake versions.
  • Wrong-sized allocation in bson_json_reader_new.

libmongoc

  • 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.

Links

Thanks to everyone who contributed to this release.

  • A. Jesse Jiryu Davis
  • Hannes Magnusson
  • Christopher Wang
  • Jean-Bernard Jansen
  • Jeremy Mikola
  • Jeroen Ooms
  • Alex Bishop

Peace,
  —A. Jesse Jiryu Davis


Image: Wikipedia