Permalink
Commits on Feb 20, 2011
  1. reworked get_all_leafs, get_all_leafs_full, count_leafs.

    Added additional fold like function, foldr. These are not really like lists:foldl
    and lists:foldr, the names are just placeholders for now. It's not clear
    what types of tree traversals these are, foldl is sort of like pre-order and
    foldr is sort of like in-order
    Robert Dionne committed Feb 20, 2011
  2. rework count_leafs to use foldl.

    Robert Dionne committed Feb 20, 2011
  3. rework couch_key_tree:foldl to use lists:fold sig, start etap, rework…

    … has_conflicts to use new foldl
    Robert Dionne committed Feb 20, 2011
  4. fix double counting of accumulator

    Robert Dionne committed Feb 20, 2011
Commits on Feb 19, 2011
  1. add foldl function to couch_key_tree.

    Function takes a position, key, value, and accumulator
    and returns either {ok, Acc} or {stop, Acc} if it wishes
    to terminate.
    Robert Dionne committed Feb 19, 2011
  2. Merge remote branch 'apache/trunk' into 462

    Robert Dionne committed Feb 19, 2011
Commits on Feb 17, 2011
  1. Replicator database: add document ID to log message

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1071790 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Feb 17, 2011
Commits on Feb 16, 2011
  1. increment non_deleted count when deleted bit is false, not true, and …

    …correct double counting.
    
    More generally many of these functions could benefit from a couch_key_tree:fold, see COUCHDB-988 (suggestion by Adam and Randall Leeds
    Robert Dionne committed Feb 4, 2011
  2. ignore .DS_Store files

    Robert Dionne committed Jan 31, 2011
  3. COUCHDB-462 track conflict count in db_info.

    This version adds a has_conflicts function to couch_key_tree that recursively counts the non-deleted leaves
    until it sees more than one and then bails out. BugzID: 937
    Robert Dionne committed Jan 31, 2011
  4. whitespace fixes

    Robert Dionne committed Jan 31, 2011
  5. Added the new replicator implementation

    Closes COUCHDB-1024. An introduction to this new implementation was given
    in the development mailing list:  http://s.apache.org/KsY
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1071375 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Feb 16, 2011
Commits on Feb 14, 2011
  1. _all_docs rows must not deleted include documents

    After COUCHDB-1061, when POSTing to _all_docs?include_docs=true with
    the body "keys" option, deleted documents were part part of the output.
    The "doc" property of each _all_docs row should have the value 'null'
    for all deleted documents (when ?include_docs=true).
    A test was added to help prevent this from happening again.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1070625 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Feb 14, 2011
Commits on Feb 13, 2011
  1. Only accept application/json from jquery.couch.js

    Since Filipe's fix for parsing the accepted content types at r1041103, returns from
    $.ajax could return a 302 that redirects to an HTML page. Functions like activeTasks()
    expect JSON and barf when fed HTML.
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1070279 13f79535-47bb-0310-9956-ffa450edef68
    rnewson committed Feb 13, 2011
  2. set cookie security flags correctly when using built-in SSL

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1070264 13f79535-47bb-0310-9956-ffa450edef68
    rnewson committed Feb 13, 2011
Commits on Feb 10, 2011
  1. Added more tests to all_docs.js

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1069268 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Feb 10, 2011
  2. More efficient _changes?include_docs=true and _all_docs?include_docs=…

    …true
    
    Closes COUCHDB-1061
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1069262 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Feb 10, 2011
Commits on Feb 7, 2011
  1. More efficient logging, closes COUCHDB-1054

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1067873 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Feb 7, 2011
Commits on Feb 5, 2011
  1. Upgrade jquery.form.js to v2.63

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1067425 13f79535-47bb-0310-9956-ffa450edef68
    jasondavies committed Feb 5, 2011
  2. Make compatible with jQuery 1.5.x

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1067420 13f79535-47bb-0310-9956-ffa450edef68
    jasondavies committed Feb 5, 2011
Commits on Feb 3, 2011
  1. Fix whitepsace issues in test/etap/Makefile.am

      * Replaced some tabs with spaces in the EXTRA_DIST list.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1066948 13f79535-47bb-0310-9956-ffa450edef68
    davisp committed Feb 3, 2011
  2. Fix etap test errors during make distcheck.

      * Updated shebang lines to use /bin/sh -e
      * Fixed config file paths for VPATH builds
      * Updated test/etap/Makefile.am to have correct paths
        for the new shell scripts and random_port.ini
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1066932 13f79535-47bb-0310-9956-ffa450edef68
    davisp committed Feb 3, 2011
  3. Use shell scripts to trigger daemon errors.

    The old scripts were written with escript and were occasionally taking
    too long to boot the entire Erlang VM causing some of the timing based
    tests to fail. Using shell scripts should minimize the process start
    up times to avoid these spurious errors.
    
    Thanks to Adam Kocoloski for pointing out my ineptitude.
    Fixes COUCHDB-1055
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1066704 13f79535-47bb-0310-9956-ffa450edef68
    davisp committed Feb 3, 2011
Commits on Feb 2, 2011
  1. cleaner fix for COUCHDB-969

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1066597 13f79535-47bb-0310-9956-ffa450edef68
    rnewson committed Feb 2, 2011
  2. Move _error resource config to startup

    This avoids a race condition where the HTTP daemon would restart but
    not load the _error proxy route.
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1066590 13f79535-47bb-0310-9956-ffa450edef68
    kocolosk committed Feb 2, 2011
  3. Do not persist custom settings

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1066575 13f79535-47bb-0310-9956-ffa450edef68
    kocolosk committed Feb 2, 2011
  4. Make server listen on an unused port during unit tests

    This prevents the tests from failing when another instance of CouchDB
    is already running on the same machine.
    
    COUCHDB-1049
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1066574 13f79535-47bb-0310-9956-ffa450edef68
    kocolosk committed Feb 2, 2011
  5. fix clause warning introduced with COUCHDB-969

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1066401 13f79535-47bb-0310-9956-ffa450edef68
    rnewson committed Feb 2, 2011
  6. Replicator DB: make number of replication retry attempts configurable

    Closes COUCHDB-1051
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1066340 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Feb 2, 2011
Commits on Feb 1, 2011
  1. Cleanup all test databases created by replicator_db.js

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1065923 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Feb 1, 2011
Commits on Jan 31, 2011
  1. Fix spurious declarations of new merge conflicts

    This patch also adds extra tests of the key tree merging logic as well
    as edoc-formatted documentation for the module and a few of the merge
    functions.  Closes COUCHDB-902.
    
    Thanks Paul Davis, Bob Dionne, Klaus Trainer.
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1065471 13f79535-47bb-0310-9956-ffa450edef68
    kocolosk committed Jan 31, 2011
  2. Added test swap_rep_db to test case replicator_db.js

    The purpose of this test is to verify that replications are stopped and
    restarted when the replicator database is dynamically changed.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1065448 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Jan 31, 2011
Commits on Jan 29, 2011
  1. Respect latest=true option in open_revs calls

    Patch by Randall Leeds, closes COUCHDB-853
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1064945 13f79535-47bb-0310-9956-ffa450edef68
    kocolosk committed Jan 29, 2011
Commits on Jan 28, 2011
  1. COUCHDB-969 - handle passwords with : in them.

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1064854 13f79535-47bb-0310-9956-ffa450edef68
    rnewson committed Jan 28, 2011
  2. fix misleading code sample in comment (thanks vmx).

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1064810 13f79535-47bb-0310-9956-ffa450edef68
    rnewson committed Jan 28, 2011