1. Jul 18, 2023
  2. Jul 15, 2023
  3. Jul 14, 2023
  4. Jul 13, 2023
  5. Jul 07, 2023
  6. Jul 04, 2023
    • Kevin Albertson's avatar
      CDRIVER-3969 set serverId with mocked cursor reply (#1335) · 9e7bf882
      Kevin Albertson authored
      serverId is expected in mongoc_cursor_new_from_command_reply_with_opts
      when the reply includes a non-zero cursor.id
      9e7bf882
    • vector-of-bool's avatar
      Define a platform-support CMake target (#1332) · 207785a1
      vector-of-bool authored
      * Define a mongo::detail::c_platform support library
      
      mongo::detail::c_platform is intended to hold usage requirements common to all
      libraries in the project. This will replace usage of directory-level
      compile/link options, which do not propagate on the generated libraries when
      they are installed.
      
      This allows one to export/install libmongoc libraries that expose
      additional usage requirements, such as linking instrumentation runtimes
      (coverage, sanitizers, etc.)
      
      Also: Sanitizers.cmake and ENABLE_COVERAGE now attach their options
      to the platform-support library. This allows installed libmongoc with
      sanitizers enabled to "just work," as downstream users will now receive
      link options for coverage and sanitizers as usage requirements from the
      libbson and libmongoc libraries.
      
      Also: Enable threading on c_platform rather than linking. Fix the bson
      and mongoc packages to pull Threads::Threads as a dependency
      
      This also affects generated pkg-config files automatically.
      207785a1
    • Betalos Oralyos's avatar
      add oracle linux to mongodl.py (#1331) · ca6782a6
      Betalos Oralyos authored
      ca6782a6
  7. Jul 01, 2023
  8. Jun 30, 2023
  9. Jun 29, 2023
  10. Jun 27, 2023
    • vector-of-bool's avatar
      Faster and Simpler Warning Flag Handling (#1318) · 550ab791
      vector-of-bool authored
      * Move maintainer flags into CMakeLists directly
      
      This puts the optional compile warnings in CMake code directly and
      applies them using generator expressions. This also speeds up subsequent
      configure times substantially as it doesn't run repeated try_compiles
      
      * Fix: alignof() detection warning when compiling as C++
      
      We check for __STDC_VERSION__ which may be undefined for C++ and on
      older C compilers. Guard against C++ and check that it is defined before
      considering it. (Fixes -Wundef warnings)
      
      * Mark SSL header-dirs as SYSTEM
      
      The OpenSSL/LibreSSL headers tricker redundant-decl warnings, so we
      want to mark those as "system", which will disable warnings for the
      content of those headers.
      
      * Fix Wformat error with type mismatch.
      
      Formatting with PRIu8 expects a uint8_t, but we pass plain
      (unsigned) int. This only appears to warn on some compilers? Fix this
      with an explicit cast.
      550ab791
    • vector-of-bool's avatar
      CDRIVER-4637 Remove ENABLE_SRV=AUTO, clean up SRV URI support (#1301) · 0dc1a4e8
      vector-of-bool authored
      
      
      Remove AUTO for ENABLE_SRV, refactor .pc generation
      
      This AUTO wasn't doing anything, and behaved very similar to plain ON.
      Now we define an interface library that provides the resolving library.
      Some cleanup to the ResSearch lookup module.
      
      * Use ENABLE_SRV to toggle SRV support rather than detection macros
      * Add distinct feature flag for SRV toggle.
      * Refactor pkg-config generation to use target properties
        This change uses target properties to fill in the slots in the
        generated pkg-config files. Previously this was unstructured strings
        and flag juggling.
      * Tweak method of detecting name resolution
      Co-authored-by: default avatarRoberto C. Sánchez <roberto@connexer.com>
      0dc1a4e8
    • Kevin Albertson's avatar
      CDRIVER-3969 error when creating uncompleted cursor with no server ID (#1321) · ffb3d349
      Kevin Albertson authored
      * fix type of BCON_INT32 value
      
      * require serverID for open cursor with `mongoc_cursor_new_from_command_reply_with_opts`
      
      * document expectations of server ID option
      
      * assert `found` after `mongoc_cursor_error`
      
      If an error occurs, `found` is false. Assert on the error first to print the error.
      
      * remove unnecessary nested `if`
      ffb3d349
    • Ezra Chung's avatar
      8126cd3a
  11. Jun 24, 2023
  12. Jun 23, 2023
  13. Jun 21, 2023
  14. Jun 17, 2023
    • Ezra Chung's avatar
      CDRIVER-4617 Refactor libmongoc to use mcd-rpc (#1307) · 6f58b9d7
      Ezra Chung authored
      * Add mcd_rpc_message ingress/egress counter functions
      
      * Add mcd_rpc_message compression functions
      
      * Add mcd_rpc_message_get_body
      
      * Add mcd_rpc_message_check_ok
      
      * Refactor mongoc_cluster_t::request_id from uint32_t -> int32_t
      
      * Refactor mock server to use mcd-rpc
      
      * Refactor server monitor thread to use mcd-rpc
      
      * Refactor mongoc-async-cmd to use mcd-rpc
      
      * Refactor mongoc_cluster_run_command_opquery to use mcd-rpc
      
      * Refactor mongoc_cluster_run_opmsg to use mcd-rpc
      
      * Refactor cursor functions to use mcd-rpc
      
      * CDRIVER-4625 Address distinct pointer type warnings on Windows
      
      * Clean up mock server functions
      6f58b9d7
    • Ezra Chung's avatar
  15. Jun 16, 2023
  16. Jun 15, 2023