1. Jun 14, 2022
  2. Jun 08, 2022
  3. May 15, 2022
  4. Apr 19, 2022
  5. Apr 13, 2022
  6. Mar 03, 2022
  7. Mar 02, 2022
  8. Feb 10, 2022
  9. Feb 04, 2022
  10. Feb 02, 2022
  11. Feb 01, 2022
  12. Jan 29, 2022
    • Ezra Chung's avatar
    • Ezra Chung's avatar
      CDRIVER-4098 Bump WIRE_VERSION_MIN from 3 to 6 (#926) · 3d0f6095
      Ezra Chung authored
      * Bump WIRE_VERSION_MIN from 3 to 6
      
      * Assert request parameter for mock_server_replies_to_find() is not null
      
      * Update error message for failing to satisfy minimum wire version
      
      * Remove Evergreen tasks requiring server version below 3.6
      
      * Update mock servers to forbid max_wire_version < 6
      
      * Update test code conditioned on wire version < 6
      
      * Replace wire version integer literals with feature macros
      
      * Replace wire versions in string literals with feature macros
      
      * Add mock_server_receives_bulk_msg()
      
      * Update mock_server_recieves_command() -> mock_server_recieves_msg()
      3d0f6095
  13. Jan 26, 2022
    • vector-of-bool's avatar
      CDRIVER-3893: Conditionally support $merge and $out execution on secondaries (#904) · 9eba451d
      vector-of-bool authored
      * Allow readPreference:secondary with $merge and $out. [Finish CDRIVER-3893, CDRIVER-4224, and CDRIVER-4195]
      * Pass around the effectively chosen read mode used in server selection back to the command builder
      * Update doc func name
      * Fix duplicate doc comments
      * Consolidate duplicate state in suitable_servers()
      * Less magic numbers
      * Clarify wire version checks
      * Force primary read preference if talking to a single server older than 5.0
      9eba451d
    • vector-of-bool's avatar
      CDRIVER-4231: New random generation of OID values (#931) · ee64af14
      vector-of-bool authored
      * New random generation of OID values [Fixes CDRIVER-4231]
      
      * Restore hashing of machine attributes, plus an atomic init-counter,
        plus the process ID.
      * Instead of MD5 hashing, use SipHash.
      * No more magic numbers, make bson-context -Wconversion clean, comment what's happening in the random init.
      * Remove old deprecated docs and no-op tests.
      * Host name mocking is gone
      ee64af14
  14. Jan 24, 2022
  15. Jan 20, 2022
  16. Jan 06, 2022
  17. Jan 05, 2022
    • Kevin Albertson's avatar
    • Ezra Chung's avatar
      CDRIVER-4249 Apply _DEFAULT_SOURCE to all subdirectories (#920) · 9d2d8b15
      Ezra Chung authored
      * Remove deprecated feature test macro _BSD_SOURCE
      * Reduce language extensions to those specified by _DEFAULT_SOURCE
      * Apply _DEFAULT_SOURCE to all subdirectories
      * Remove explicit feature test macros from Evergreen tasks
      * Address missing inclusion of unistd.h during zlib bundle compilation
      9d2d8b15
    • Jeremy Mikola's avatar
      CDRIVER-3723 finalize URI during client/pool construction (#921) · e7e15002
      Jeremy Mikola authored
      
      
      Introduces new mongoc_client_new_from_uri_with_error and mongoc_client_pool_new_with_error methods. Also addresses topology leak in mongoc_client_new_from_uri (CDRIVER-4251).
      
      * Remove redundant warnings about unused results
      
      * Explain why we need not handle null result from _mongoc_client_new_from_topology
      
      * Log URI errors in mongoc_client_new as warnings
      
      * Clear logs between /Client/max_staleness assertions
      
      * Set error instead of logging in mongoc_client_pool_new_with_error
      
      * Remove test expecting a client with an invalid topology
      
      * Revise assertions in /loadbalanced/client_uri_validation test
      
      This no longer requires constructing a client and expecting an error through server selection.
      
      * Use tracing macro for return statement
      
      * Check MONGOC_ENABLE_SSL in mongoc_client_new_from_uri_with_error
      
      Moving the check up from _mongoc_client_new_from_topology makes mongoc_client_new_from_uri_with_error consistent with mongoc_client_pool_new_with_error. Additionally, we add log message assertions to corresponding tests.
      
      * Anticipate null pool or client in SRV error tests
      
      * Remove obsolete tests for invalid LB topologies
      
      These tests were previously introduced in CDRIVER-4184 but no longer apply now that we prohibit construction of clients and pools with an invalid topology.
      
      * _mongoc_client_new_from_topology should require a valid topology
      
      * Document precondition for _mongoc_client_new_from_topology
      
      Co-authored-by: default avatarEzra Chung <88335979+eramongodb@users.noreply.github.com>
      Co-authored-by: default avatarKevin Albertson <kevin.albertson@mongodb.com>
      e7e15002
  18. Dec 29, 2021
  19. Dec 21, 2021
  20. Dec 18, 2021
  21. Dec 16, 2021
    • Ezra Chung's avatar
      CDRIVER-4130 Unconditionally use OP_MSG for server 5.1 and newer (#912) · 5d475898
      Ezra Chung authored
      * Warn and ignore exhaust cursor option given server 5.1 or newer
      * Unconditionally use OP_MSG for find command given server 5.1 or newer
      * Unconditionally use OP_MSG for getMore command given server 5.1 or newer
      * Avoid unnecessary exhaust cursor in /counters/op_msg test
      * Document exhaust option behavior for find command
      * Add /Client/exhaust_cursor/fallback test for server 5.1 and newer
      5d475898
  22. Dec 15, 2021