Skip to content
Commits on Aug 16, 2012
  1. tests: Fix the sync_cmd_get_more test

    mongo_sync_cmd_get_more() must be called with a namespace, not just a
    database, so use config.ns.
    Signed-off-by: Gergely Nagy <>
  2. Merge mongo_unix_connect() into mongo_connect()

    To simplify the API, merge the mongo_unix_connect() function added
    previously into mongo_connect(): if the port is -1 (MONGO_CONN_LOCAL),
    then assume the address is a unix socket's path, and call
    mongo_unix_socket(), otherwise proceed as if it was a TCP host & port
    This also means that mongo_sync_connect() needs no special handling,
    The mongo-dump example was updated too, and a short (negative) test
    Signed-off-by: Gergely Nagy <>
Commits on Apr 13, 2012
  1. bson: bson_cursor_find() must not match partial keys

    bson_cursor_find() has had a silly matching logic that resulted in it
    finding keys where the sought name is a prefix of the key (for
    example, searching for "foo" would also find "foobar").
    This patch corrects that, and adds a test case.
    Signed-off-by: Gergely Nagy <>
Commits on Sep 6, 2011
  1. tests: Add a new index test.

  2. mongo-sync: Do not accept invalid index specifications.

    When the mongo_sync_cmd_create_index() encounters an invalid index
    specification (whenever the value type is unsupported), bail out
Commits on Aug 10, 2011
  1. Revert "tests: Rename a few files."

    This reverts commit 24a7289.
    Instead of renaming, tests/ will be excluded from make dist. Tar's
    limitations will not force me to use shorter, less telling names for
    my tests.
Commits on Aug 9, 2011
  1. tests: Rename a few files.

    Renamed a few files to make their paths shorter, so that tar stops
    complaining that the length is too long.
Commits on Aug 4, 2011
  1. tests: Skip coverage for optional and uncompiled objects.

    The compat.o object is optional, and in recent systems, will be an
    empty stub. To avoid a warning or two during 'make coverage', skip
    objects that have no coverage info.
  2. tests: Extend the big packet test.

    When testing the receipt of the big packet, verify that the packet we
    get back has the appropriate size.
Commits on Aug 3, 2011
  1. @bazsi

    Makefiles: EXTRA_DISTs changed to cover the moving of the test scripts.

    bazsi committed with
    Signed-off-by: Balazs Scheidler <>
Commits on Jul 19, 2011
  1. tests: Remove a bogus test case.

    mongo_sync_gridfs_chunked_file_cursor_get_chunk()'s size parameter can
    be NULL, so remove the unit test that tried to verify the function
    returns failiure in that case.
  2. Fix compilation with glib < 2.16.

    Even though the compatibility functions were implemented, the header
    was not included anywhere. To make this actually work, include it into
    libmongo-private.h (which in turn is included by all GChecksum users
    under src/) and include it in the only test case that uses GChecksums
Commits on Jul 16, 2011
  1. tests: Really fix the makefile...

    Apparently, the previous workaround did not work. Copy the check
    target instead, so it's not mixed with a pattern-rule.
  2. tests: Makefile fix.

    Some combinations of automake & make didn't like the check
    rule. Removed it, the default depends on check-recursive, which is
    caught by the pattern rule anyway.
  3. tests: Fix the gridfs_stream_close unit test.

    When running the test suite without network access, skip the proper
    amount of tests.
Commits on Jul 13, 2011
Commits on Jul 10, 2011
  1. sync: New command: mongo_sync_cmd_exists().

    Another new command, to retrieve information about a collection.
  2. tests: Fix the sync_gridfs_new unit test.

    The unit test was using the test.fs. prefix when it should've used
  3. sync: Support pre-allocated collection creation aswell.

    mongo_sync_cmd_create() now accepts MONGO_COLLECTION_SIZED flag,
    signalling that the collection should pre-allocate some space.
    Flags must be followed by a 64-bit size in this case aswell.
  4. sync: Add mongo_sync_cmd_create().

    Add a new helper to aid us in explicitly creating collections
    (especially useful for preallocation and capped collections).
  5. tests: Add tailable cursor functional test.

    Add a new test case to check whether we handle tailable cursors well.
Commits on Jul 9, 2011
  1. tests: Fix a format string error in the gridfs_chunk test.

    Use the proper format strings in the note() call, otherwise it may
    read short, and segfault.
Commits on Jul 8, 2011
  1. gridfs: Add more tests.

  2. gridfs: Common accessors to chunked & stream files.

    Reimplemented the chunked accessors as generic accessors for both
    chunked and streamed files (returning EOPNOTSUPP for types they don't
    make sense for).
    Also re-enabled all the test cases.
  3. gridfs: Chunk API split, take two.

    In this patch, efforts are made to base the streaming and the chunk
    API on similar foundations, so that a generic accessor can look at
  4. gridfs: Start splitting out the chunk API into a separate layer.

    The chunk API should be a separate layer, like the stream API is. This
    patch does the first half: splitting out the bulk of it.
    As a side-effect, a few things broke, and have been commented out for
    the time being.
  5. sync: Allow background & sparse indexes.

    Add two new index option flags: MONGO_INDEX_BACKGROUND and
    MONGO_INDEX_SPARSE, to allow creating background and sparse indexes,
Commits on Jul 3, 2011
Something went wrong with that request. Please try again.