Skip to content
A high-performance MongoDB driver for C
C Python CMake C++ Assembly Shell Other
Branch: master
Clone or download

Latest commit

kevinAlbs CDRIVER-3678 fix /Topology/request_scan_on_error
CDRIVER-3615 changed an exotic edge case for parsing errors.
An error with a NotMaster error code, but a "node is recovering" message
is considered a "node is recovering" error for multi-threaded error
handling. So requested scan is expected.

A "node is recovering" error should request scan for multi-threaded, not
single-threaded scanning. The test was making a wrong assertion, but the
check of the assertion was very racy.

This fixes the test and increases the wait to make the test less racy.
Latest commit 6dbadb5 May 20, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.evergreen CDRIVER-3665 End-to-end test for OCSP caching (#612) May 20, 2020
.travis.scripts CDRIVER-2281 Improve travis debugging Sep 14, 2017
build CDRIVER-3665 End-to-end test for OCSP caching (#612) May 20, 2020
debian (Debian packaging) Allow skipping build of documentation, i.e., DEB_B… Apr 17, 2020
generate_uninstall CDRIVER-2849 name uninstall program based on components built Jan 15, 2019
orchestration_configs CDRIVER-3408 OCSP initial evergreen testing Mar 13, 2020
src CDRIVER-3678 fix /Topology/request_scan_on_error May 20, 2020
.clang-format CDRIVER-1167 Add clang-format file, and remove uncrustify Dec 12, 2016
.gdbinit CDRIVER-2883 Support sharded transactions recovery token Aug 5, 2019
.gitattributes CDRIVER-929 line-endings in test data files Oct 19, 2015
.gitignore CDRIVER-2831 migrate to dynamic VERSION_CURRENT Sep 27, 2018
.gitmodules CDRIVER-2416 delete libbson submodule Dec 14, 2017
.lsan-suppressions CDRIVER-2875 auto encryption and decryption Nov 4, 2019
.travis.yml fix CMake invocation on Travis Apr 29, 2020
CMakeLists.txt Fix MATCHES usage so ENABLE_STATIC=BUILD_ONLY works (#600) Apr 20, 2020
CONTRIBUTING.md CDRIVER-2875 test CSE in evergreen Nov 8, 2019
COPYING doc: drop appendix from license. Mar 13, 2014
NEWS update NEWS Apr 10, 2020
README.rst Updated discussion links to point to the new MongoDB Community Forums ( Mar 7, 2020
THIRD_PARTY_NOTICES CDRIVER-2711 deprecate md5 apis Jul 17, 2018
lldb_bson.py CDRIVER-2457 move debug scripts to mongo-c-driver Jan 31, 2018
valgrind.suppressions CDRIVER-2822 run unittests with valgrind Nov 26, 2018

README.rst

mongo-c-driver

About

mongo-c-driver is a project that includes two libraries:

  • libmongoc, a client library written in C for MongoDB.
  • libbson, a library providing useful routines related to building, parsing, and iterating BSON documents.

If libmongoc is not needed, it is possible to build and install only libbson.

Documentation / Support / Feedback

The documentation is available at http://mongoc.org/. For issues with, questions about, or feedback for libmongoc, please look into our support channels. Please do not email any of the libmongoc developers directly with issues or questions - you're more likely to get an answer on the MongoDB Community Forums.

Bugs / Feature Requests

Think you’ve found a bug? Want to see a new feature in libmongoc? Please open a case in our issue management tool, JIRA:

Bug reports in JIRA for all driver projects (i.e. CDRIVER, CSHARP, JAVA) and the Core Server (i.e. SERVER) project are public.

How To Ask For Help

If you are having difficulty building the driver after reading the below instructions, please post on the MongoDB Community Forums to ask for help. Please include in your post all of the following information:

  • The version of the driver you are trying to build (branch or tag).
    • Examples: master branch, 1.9.5 tag
  • Host OS, version, and architecture.
    • Examples: Windows 10 64-bit x86, Ubuntu 16.04 64-bit x86, macOS 10.13
  • C Compiler and version.
    • Examples: GCC 7.3.0, Visual Studio Community 2017, clang 3.9, XCode 9.3
  • The output of cmake.
  • The text of the error you encountered.

Failure to include the relevant information will delay a useful response. Here is a made-up example of a help request that provides the relevant information:

Hello, I'm trying to build the C driver with Kerberos support, from mongo-c-driver-1.9.5.tar.gz. I'm on Ubuntu 16.04, 64-bit Intel, with gcc 5.4.0. I run CMake like:

$ cmake .
-- The C compiler identification is ;GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works

... SNIPPED OUTPUT, but when you ask for help, include full output without any omissions ...

-- Searching for libsasl2
--   Not found (specify -DCMAKE_LIBRARY_PATH=/path/to/sasl/lib for SASL support)
CMake Error at CMakeLists.txt:10 (_message):
    SASL not found

Can you tell me what I need to install? Thanks!

Security Vulnerabilities

If you’ve identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions here.

Installation

Detailed installation instructions are in the manual: http://mongoc.org/libmongoc/current/installing.html

You can’t perform that action at this time.