Permalink
Commits on Mar 13, 2011
  1. Add replication ID version information to checkpoints

    Now that we have versioned replication IDs (introduced by COUCHDB-810),
    it's useful to know which version is being used in the replication
    checkpoints. This is mostly for debugging purposes.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1081106 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 13, 2011
  2. Fix grammar error in error message

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1081100 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 13, 2011
Commits on Mar 12, 2011
  1. Replicator manager: do basic validation of replication documents

    Now the default design document of the replicator database validates
    each replication document added to the database so that necessary
    fields must be present and have the right type, and optional replication
    related fields have the correct type as well.
    
    Closes COUCHDB-1088.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1080953 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 12, 2011
  2. Replication manager: restart replications that end up in an error state

    Closes COUCHDB-1085
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1080950 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 12, 2011
Commits on Mar 9, 2011
  1. Deal with unsupported database versions more gracefully

    Instead of crashing with a function_clause error, allow the updater to throw
    the error '{database_disk_version_error, "Incorrect disk header version"}'
    when opening more recent, unsupported, database files.
    This is part of COUCHDB-1081.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1079966 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 9, 2011
  2. Minor refactoring of couch_changes.erl

    Use a record for the accumulator used by the database changes
    fold function. This makes the much more readable, easier to
    extend and slightly less verbose.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1079945 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 9, 2011
  3. Parameter "include_docs" now honors parameter "conflicts"

    When querying a map view, /db/_all_docs/ or /db/_changes/ with
    "include_docs=true", if "conflicts=true" is given as well, the
    documents will contain the conflicts list (if there are conflicting
    revisions).
    
    Closes COUCHDB-549.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1079939 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 9, 2011
Commits on Mar 8, 2011
  1. Adapt replication manager to the new replicator's code

    Now all the replication document management is done only by the
    couch_replication_manager module, instead of being split by this
    module and replication gen_servers. The code is also simpler now,
    since it uses the couch_replication_notifier gen_event.
    
    This is a pure refactoring, not adding any new behaviour.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1079483 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 8, 2011
  2. Renamed module couch_rep_db_listener to couch_replication_manager

    This new name is more appropriate since it describes more precisely
    what the modules does.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1079475 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 8, 2011
Commits on Mar 5, 2011
  1. Fix case clause in the replicator database listener

    This clause was never matched.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1078278 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 5, 2011
  2. Replicator: better behaviour on checkpoint failure

    Replicator processes now terminate immediately after a checkpoint failure.
    Checkpoint error detection and logging is improved as well.
    
    Issue identified by, and initial patch provided by Randall. Thanks.
    Closes COUCHDB-1080.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1078273 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 5, 2011
Commits on Mar 3, 2011
  1. Added replicator database compaction test

    A test to confirm that ongoing replications are not
    stopped when/after the replicator database is compacted.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1076569 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 3, 2011
Commits on Mar 2, 2011
  1. Throw conflict in the remote clause of couch_api_wrap:update_doc/4

    This is to mimic the behaviour of the local database clause of this
    function.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1076410 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 2, 2011
  2. Catch all in couch_util:to_binary/1 list argument clause

    When a list_to_binary call fails, the error tag is 'error' and not 'throw'.
    This was noticed when this clause was being hit in an error clause of the
    replication http handler (couch_httpd_replicator.erl).
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1076368 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 2, 2011
Commits on Mar 1, 2011
  1. Fix authentication failure when a username contains colons

    Closes COUCHDB-1072.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1075891 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Mar 1, 2011
  2. fix error spotted by @enquora on irc. Don't load rules when it isn't …

    …needed. ALso fix tests.wq
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1075728 13f79535-47bb-0310-9956-ffa450edef68
    Benoit Chesneau committed Mar 1, 2011
Commits on Feb 26, 2011
  1. fix COUCHDB-855 . now the gen_server is only used to store vhosts set…

    …tings. It also reload them when they change.
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1074816 13f79535-47bb-0310-9956-ffa450edef68
    Benoit Chesneau committed Feb 26, 2011
Commits on Feb 22, 2011
  1. Removed unnecessary guard

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1073294 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Feb 22, 2011
Commits on Feb 19, 2011
  1. Removed unused function clause

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1072364 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana 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. 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