Black and white photo. The steamship Princess May ran aground in 1910 on rocks near the north end of Sentinel Island. It was high tide and the momentum of the ship forced it well up onto the rocks, with the bow jutting upward at an angle of 23 degrees.

I'm pleased to announce version 1.4.2 of libbson and libmongoc, the libraries constituting the MongoDB C Driver.

libbson

No change since 1.4.1; released to keep pace with libmongoc's version.

libmongoc

This release fixes two bugs in "minPoolSize" logic:

  • minPoolSize should mean "the number of inactive clients to keep cached in the pool", so when a client is pushed, if there are already minPoolSize clients in the pool, the oldest should be freed. Instead, minPoolSize is compared to pool->size, which is the total number of active or inactive clients. So if there are 10 clients total and minPoolSize is 3, all pushed clients are freed, not just clients in excess of the first 3.
  • The pool is supposed to be a LIFO for memory coherence but it destroys the most-recently used client, not the least-recently used.

See CDRIVER-1558 for details.

Peace,
  — A. Jesse Jiryu Davis