Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Oct 1, 2011
  1. @tilgovi

    fix COUCHDB-648 - _update handler ignores "code"

    tilgovi authored
    Test by Christian Carter
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1177890 13f79535-47bb-0310-9956-ffa450edef68
Commits on Sep 30, 2011
  1. @fdmanana
  2. @fdmanana

    Replicator: skip documents with empty ID

    fdmanana authored
    Due to a bug, older releases allowed the creation of
    documents with an empty ID, which are impossible to
    GET therefore making the replicator crash.
    This change simply skips such documents and logs
    an error message to inform users.
    
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1177548 13f79535-47bb-0310-9956-ffa450edef68
  3. fix tests after the change on trunk@1177162 .

    Benoit Chesneau authored
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1177495 13f79535-47bb-0310-9956-ffa450edef68
Commits on Sep 29, 2011
  1. @fdmanana

    Remove usage of http module from etap tests

    fdmanana authored
    This module is deprecated in OTP R15, which is going to
    be released by the end of this year.
    The etap tests now use ibrowse instead.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1177459 13f79535-47bb-0310-9956-ffa450edef68
  2. @tilgovi

    be nice to the poor http parsers

    tilgovi authored
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1177162 13f79535-47bb-0310-9956-ffa450edef68
Commits on Sep 28, 2011
  1. @davisp

    Rest of the fix for COUCHDB-1265

    davisp authored
    As a follow up to COUCHDB-1265 I was missing the fact that after the
    insertion of a new update_seq into an internal node it is quite possible
    that a compaction runs before the doc is updated again. This is
    important because compaction removes information of the largest update
    seq from the tree itself.
    
    The fix is simple to include the update_seq from the #full_doc_info{}
    record when calculating #doc_info.high_seq. The way to think of this
    is that it's the maximum value from all known values for the update
    sequence which can be defined as all values known in the tree or in the
    full_doc_info record.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1176701 13f79535-47bb-0310-9956-ffa450edef68
  2. @davisp

    Allow CommonJS modules to be an empty string.

    davisp authored
    We were making a typical JavaScript mistake testing a module for
    truthiness instead of checking that it was undefined.
    
    Fixes COUCHDB-1223
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1176677 13f79535-47bb-0310-9956-ffa450edef68
Commits on Sep 27, 2011
  1. @davisp

    Fix function evaluation by newer SpiderMonkey's.

    davisp authored
    Found this error using the Debian package for SM 1.8.5 and have since
    had reports of users seeing it as well. The basic error is that some
    versions of SpiderMonkey appear to dislike this call to eval:
    
        eval("function(){}");
    
    The fix is simply to wrap the function source in parenthesis so that
    SM is convinced that it knows how to evaluate a function.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1176666 13f79535-47bb-0310-9956-ffa450edef68
  2. close #COUCHDB-1297

    Benoit Chesneau authored
    make sure we have a binary here.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1176648 13f79535-47bb-0310-9956-ffa450edef68
  3. reflect api changes in couch_api_index. While I'm here, even if the

    Benoit Chesneau authored
    module isn't used give it a proper module declaration.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1176269 13f79535-47bb-0310-9956-ffa450edef68
  4. fix typos

    Benoit Chesneau authored
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1176267 13f79535-47bb-0310-9956-ffa450edef68
Commits on Sep 24, 2011
  1. @fdmanana

    Fix database compaction crash on retry

    fdmanana authored
        
    If the compaction is retried 2 or more times, there's a badmatch
    when asserting that the number of changes processed equals the
    number of total changes. This is due to the fact that the task
    properties were not updated properly once a retry happens.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1175089 13f79535-47bb-0310-9956-ffa450edef68
Commits on Sep 23, 2011
  1. @davisp

    Commit the compacted index before returning it.

    davisp authored
    Failing to compact here could cause errors trying to resume a compaction
    due to timeouts while searching for a header.
    
    See COUCHDB-994
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1174984 13f79535-47bb-0310-9956-ffa450edef68
Commits on Sep 21, 2011
  1. @davisp

    Change internal atom from val to value.

    davisp authored
    I tried really hard to think of a reason to keep this as val. But in
    the end it was just calming my OCD to have atoms almost all the same
    size.
    
    Fixes COUCHDB-1291
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173445 13f79535-47bb-0310-9956-ffa450edef68
  2. @fdmanana

    Add test 201-view-group-shutdown.t (COUCHDB-1283)

    fdmanana authored
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173442 13f79535-47bb-0310-9956-ffa450edef68
  3. @davisp

    Ignore build output for new directories.

    davisp authored
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173440 13f79535-47bb-0310-9956-ffa450edef68
  4. @davisp

    Remember to provide a 2-arity wrapper to udpate.

    davisp authored
    Expose the proper API to allow the compactor to use the updater to
    top off a compaction when the view was udpated during compaction.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173439 13f79535-47bb-0310-9956-ffa450edef68
  5. @davisp

    Keep the databae open for index compaction.

    davisp authored
    Long running index compactions could fail to complete if something was
    iterating db's due to the underlying db being closed. Seeing as index
    compaction is non-resumable this prevented index compaction from
    completing.
    
    Fixes COUCHDB-1283
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173435 13f79535-47bb-0310-9956-ffa450edef68
  6. @davisp

    Disable verbose output for mrview tests.

    davisp authored
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173431 13f79535-47bb-0310-9956-ffa450edef68
Commits on Sep 20, 2011
  1. @fdmanana

    Efficient implementation of builtin filters

    fdmanana authored
    Currently, the builtin changes filters "_doc_ids" and "_design"
    are not very efficient because they fold the entire seq btree
    and then filter the values by document ID.
    This implementation avoids that by doing direct lookups against
    the id btree, and then, for continuous changes requests, it
    just listens for database update events and does partial seq
    btree folds.
    
    COUCHDB-1288
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173419 13f79535-47bb-0310-9956-ffa450edef68
Commits on Sep 19, 2011
  1. @fdmanana

    Fix test 240-replication-compact.t

    fdmanana authored
    Don't check for a progress of 100%. Because the number of
    documents the test writes is variable, sometimes the progress
    is below 100% (99, 98 for e.g.) due to integer division
    truncation.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172423 13f79535-47bb-0310-9956-ffa450edef68
  2. @fdmanana

    Update replication task status more often

    fdmanana authored
    The task status for a replication is now updated more
    often. It also avoids the case where the reported
    progress was greater than 100%.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172418 13f79535-47bb-0310-9956-ffa450edef68
Commits on Sep 18, 2011
  1. @fdmanana

    Replicator: don't use chunked encoding for _bulk_docs

    fdmanana authored
    Nginx and a few other servers don't like PUT/POST requests
    without a Content-Length header, making it impossible to
    do a chunked transfer encoding for these requests.
    Issue and patch tested by Dale Harvey, thanks.
    
    Closes COUCHDB-1286.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172388 13f79535-47bb-0310-9956-ffa450edef68
  2. @davisp

    Allow mrview reads to continue after compaction.

    davisp authored
    This adds a ref counter to handle the shutdown of the mrview file
    instead of closing it forcibly in swap_compacted. This fixes a
    behavior regression introduced with the new indexer implementation.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172381 13f79535-47bb-0310-9956-ffa450edef68
  3. @davisp

    Test that view reads can span compaction swaping.

    davisp authored
    Make sure that compaction doesn't remove a file out from under the
    current view readers.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172380 13f79535-47bb-0310-9956-ffa450edef68
  4. @davisp

    Avoid a race condition for monitored compaction.

    davisp authored
    It was technically possible for compaction to finish before a monitor
    was requested. This fixes that by giving couch_index:compact a third
    options parameter that accepts the atom 'monitor' which will then return
    {ok, MonRef} instead of a bare ok.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172378 13f79535-47bb-0310-9956-ffa450edef68
  5. @davisp

    Only restart the updater if it was running.

    davisp authored
    When compaction finished it was forcibly starting a new indexer process
    even if one wasn't already running. This reverts to the old behavior.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172377 13f79535-47bb-0310-9956-ffa450edef68
  6. @davisp

    Better lifetime error messages for couch_index.

    davisp authored
    Add a log message when the indexer exits as well as format the sig in
    log messages has hex.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172375 13f79535-47bb-0310-9956-ffa450edef68
  7. @davisp

    Fix _update calls when creating docs.

    davisp authored
    With the docid fix, this clause was being overshadowed by a looser
    pattern matching spec. Just needed to be reordered to detect when no
    docid was provided.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172374 13f79535-47bb-0310-9956-ffa450edef68
  8. @davisp

    Silenced compiler warnings for unused variables.

    davisp authored
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172373 13f79535-47bb-0310-9956-ffa450edef68
  9. @davisp

    Use #doc_info{} optimization for _all_docs.

    davisp authored
    During the refactor I accidentally undid the optimization from
    COUCHDB-1061 which uses a #doc_info{} to get a #doc{} from disk
    which avoids a lookup in the id btree.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172309 13f79535-47bb-0310-9956-ffa450edef68
Commits on Sep 17, 2011
  1. @fdmanana

    Fixed typo in NEWS and CHANGES

    fdmanana authored
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172153 13f79535-47bb-0310-9956-ffa450edef68
  2. @fdmanana

    Update CHANGES and NEWS for 1.2.0

    fdmanana authored
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172150 13f79535-47bb-0310-9956-ffa450edef68
  3. @fdmanana

    Test replication task properties from /_active_tasks

    fdmanana authored
    Do some basic checking that a replication adds an entry to
    _active_tasks with all the fields it's supposed to.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172079 13f79535-47bb-0310-9956-ffa450edef68
Something went wrong with that request. Please try again.