Skip to content
Commits on Jun 22, 2015
  1. bson: Fix an int size mismatch in _bson_cursor_find()

    _bson_cursor_find() used gint32 for position tracking, while
    initializing it to a size_t value. With gcc5 on higher optimisation
    levels, this made tests fail. The obvious fix is to use size_t for
    position tracking. Fixes #36.
    
    Reported-by: Jörg Frings-Fürst
    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed Jun 22, 2015
Commits on Nov 24, 2014
  1. README.md: Add a note about looking for a new home

    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed Nov 24, 2014
Commits on Aug 13, 2014
  1. tests: Fix a bug in sync_cmd_get_more

    Use the full namespace for mongo_sync_cmd_get_more(), instead of only
    the database name. This makes the test pass when using replicasets.
    
    Signed-off-by: Gyorgy Demarcsek <gyorgy.demarcsek@icloud.com>
    Gyorgy Demarcsek committed with Aug 13, 2014
Commits on Aug 8, 2014
  1. Enable coverage reportting via coveralls.io

    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed Aug 8, 2014
Commits on Jul 2, 2014
  1. configure.ac: Disable symbol versioning in a static-only build

    When using a static-only build, without a shared library, disable symbol
    versioning. This fixes the case of embedding a static copy of the
    library in other software.
    
    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed Jul 2, 2014
Commits on May 22, 2014
  1. Merge tag 'libmongo-client-0.1.8'

    libmongo-client 0.1.8 release
    committed May 22, 2014
  2. Release libmongo-client 0.1.8

    Added NEWS items for 0.1.8, bumped the version in configure.ac, and
    updated the library version in src/Makefile.am.
    
    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed May 22, 2014
  3. configure.ac: Remove unnecessary checks

    If we're not using the result of a test, the test should not be there at
    all: drop a few IPv6 related checks from configure.ac.
    
    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed May 22, 2014
  4. configure.ac: Auto-detect symbol versioning

    Instead of relying on the --with-symbol-versioning flag, automatically
    detect if we can use it.
    
    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed May 22, 2014
Commits on May 19, 2014
  1. mongo-sync: New function: mongo_sync_cmd_get_last_error_full()

    This implements mongo_sync_cmd_get_last_error_full(), which is like
    mongo_sync_cmd_get_last_error(), except it returns the full BSON object,
    not just the err string. Fixes #30.
    
    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed May 19, 2014
  2. tests: Remove an unused variable

    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed May 19, 2014
  3. mongo-sync: Fix a signed<->unsigned comparsion

    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed May 19, 2014
  4. mongo-sync: Drop an unused function

    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed May 19, 2014
Commits on Apr 15, 2014
  1. Merge pull request #29 from lbudai/f/failover_refact

    mongo-sync: store/load operations perform deep copy on the cache object
    committed Apr 15, 2014
Commits on Apr 14, 2014
  1. mongo-sync: recovery_cache_seed_add() supports unix domain sockets

    Signed-off-by: Budai Laszlo <lbudai@balabit.hu>
    Budai Laszlo committed Apr 14, 2014
Commits on Apr 7, 2014
  1. mongo-sync: store/load operations perform deep copy on the cache object

    Signed-off-by: Budai Laszlo <lbudai@balabit.hu>
    Budai Laszlo committed Apr 4, 2014
Commits on Apr 3, 2014
  1. tests: Fix a func test to work without a replica set

    When working with a single MongoDB instance, properly skip newly added
    tests in tests/func/mongo/sync/f_sync_auto_reconnect_cache.c.
    
    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed Apr 3, 2014
  2. mongo-sync: save last error for future use

    Signed-off-by: Budai Laszlo <lbudai@balabit.hu>
    Budai Laszlo committed with Apr 2, 2014
  3. .travis.yml: Enable symbol versioning on Travis CI

    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed Apr 3, 2014
  4. Merge pull request #27 from lbudai/f/failover_refact

    mongo-sync: make it possible to use recovery cache from an external proj...
    committed Apr 3, 2014
Commits on Apr 1, 2014
  1. @lbudai

    mongo-sync: make it possible to use recovery cache from an external p…

    …roject
    
    Recovery cache definition is an internal, private definition
    (and we don't want to change it).
    
    This patch:
    - adds a constructor-like method (_new) instead of init,
      which creates the cache object dynamically by allocating memory on the heap
    
    - adds a destructor-like method(_free) instead of discard
    
    Signed-off-by: Budai Laszlo <lbudai@balabit.hu>
    lbudai committed with Budai Laszlo Mar 27, 2014
  2. mongo-sync: Fix a memory leak

    When _mongo_sync_packet_send() is called, all callers expect the passed
    packet to get free()'d in all cases. This did not happen if we had
    force_master set, and _mongo_cmd_ensure_conn() failed. This patch fixes
    this path too, and fixes #26.
    
    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed Apr 1, 2014
Commits on Mar 28, 2014
  1. mongo-utils: Allow -1 as port in mongo_util_parse_addr()

    When using replica-sets with unix domain sockets, we end up putting
    paths with -1 ports into the internal seed list. mongo_connect()
    understands that, but mongo_util_parse_addr() needs to handle that
    similarly too. To this end, allow -1 (MONGO_CONN_LOCAL) when parsing
    addresses.
    
    This really fixes #24.
    
    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed Mar 28, 2014
  2. mongo-sync: Only close the FD on reconnect if needed

    When reconnecting and replacing the old FD with the new, only close the
    old one if it is different from the new, otherwise we will end up
    closing the new socket too. This fixes #25.
    
    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed Mar 28, 2014
  3. mongo-utils: Fix parsing addresses without a port name

    When the address does not have a port, set the output port parameter to
    -1. This fixes #24.
    
    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed Mar 28, 2014
Commits on Mar 27, 2014
  1. Merge pull request #23 from lbudai/f/failover_refact

    tests: be careful when using a broken socket
    committed Mar 27, 2014
  2. @lbudai

    tests: be careful when using a broken socket

    Result of writing to a broken socket is platform specific.
    
    There are platforms(POSIX.1-2008) which supports MSG_NOSIGNAL flag which
    disabling SIGPIPE.
    
    There are platforms which supports SO_NOSIGPIPE which is a socket option
    (and can be set with setsockopt; FreeBSD) and which also disables SIGPIPE.
    
    On other platforms(like Solaris, even Oracle Solaris 11) you will get a SIGPIPE
    when you try to write to a broken socket. On those platforms we should ignore
    SIGPIPE.
    
    some techinal details:
      In configure.ac we check whether MSG_NOSIGNAL is supported or not on our
      plaform. If yes, HAVE_MSG_NOSIGNAL is defined.
      A new test_main_setup() function added to ignore SIGPIPE if
      HAVE_MSG_NOSIGNAL not defined. That function is called in the generated
      main().
    
    Signed-off-by: Laszlo Budai <lbudai@balabit.hu>
    lbudai committed with Laszlo Budai Mar 26, 2014
Commits on Mar 26, 2014
  1. tests: Code cleanup

    Removed some unused variables.
    
    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed Mar 26, 2014
  2. tests: Include <glib.h> in libtap/tap.c

    We're using g_vsnprintf(), so include glib to silence a warning.
    
    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed Mar 26, 2014
  3. sync: connection recovery cache (with tests) added

    libmongo-client dropped replicaset and auth. credentials when a
    connection closed (disconnect() ). This can lead to a re-connect failure
    problem (reload), if the master, at the moment of disconnect(), is not
    listed in the application's config. So we have to store it (and also
    authentication credentials...) .
    
    This patch adds a recovery cache to each mongo_sync_connection object. A
    recovery cache stores a ReplicaSet and an AuthCredentials object.
    
    More techinally: there is a pointer inside mongo_sync_connection object
    which references such a cache. If the cache is not set, everything is
    just happen as before. When the cache is set, ReplicaSet and
    AuthCredentials will be reused by the next mongo_sync_connection (eg.
    after reload). When the seed list is changed, the user should discard
    the cache.
    
    Signed-off-by: Budai Laszlo <lbudai@balabit.hu>
    Budai Laszlo committed with Mar 19, 2014
  4. src/libmongo-client.ver: Explicitly list LMC_0.1.0 symbols

    Instead of tossing every otherwise untagged symbol under the LMC_0.1.0
    version, use an explicit list.
    
    Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
    committed Mar 25, 2014
Commits on Mar 12, 2014
  1. Merge tag 'libmongo-client-0.1.7.1'

    libmongo-client 0.1.7.1 release
    committed Mar 12, 2014
Something went wrong with that request. Please try again.