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

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

    committed
    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
    pair.
    
    This also means that mongo_sync_connect() needs no special handling,
    either.
    
    The mongo-dump example was updated too, and a short (negative) test
    added.
    
    Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Commits on Apr 13, 2012
  1. bson: bson_cursor_find() must not match partial keys

    committed
    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 <algernon@balabit.hu>
Commits on Sep 6, 2011
  1. tests: Add a new index test.

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

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

    committed
    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.

    committed
    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.

    committed
    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.

    committed
    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 <bazsi@balabit.hu>
Commits on Jul 19, 2011
  1. tests: Remove a bogus test case.

    committed
    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.

    committed
    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
    aswell.
Commits on Jul 16, 2011
  1. tests: Really fix the makefile...

    committed
    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.

    committed
    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.

    committed
    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().

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

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

    committed
    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().

    committed
    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.

    committed
    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.

    committed
    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.

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

    committed
    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.

    committed
    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
    both.
  4. gridfs: Start splitting out the chunk API into a separate layer.

    committed
    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.

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