Permalink
Commits on Dec 22, 2010
  1. Allow a multipart/mixed document GET to send the attachments in encod…

    …ed (compressed) form
    
    Currently this API is not used internally but it's a very important one for the new replicator.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1052047 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Dec 22, 2010
  2. Make sure attachments get compressed when their MIME type lists param…

    …eters
    
    Closes COUCHDB-996.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1052031 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Dec 22, 2010
Commits on Dec 21, 2010
  1. Fix 180-http-proxy tests after Mochiweb upgrade.

    Content-Length and the HTTP body are returned as 0 and an empty binary
    instead of undefined.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1051612 13f79535-47bb-0310-9956-ffa450edef68
    davisp committed Dec 21, 2010
  2. update benchbulk script for json content-type

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1051325 13f79535-47bb-0310-9956-ffa450edef68
    jchris committed Dec 21, 2010
Commits on Dec 20, 2010
  1. Upgraded ibrowse to version 2.1.2 (released today)

    This version fixes a blocking issue (which rarely happens) when using the same connection
    (with ot without pipelining) for multiple requests using the option {stream_to, {pid(), once}}.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1051082 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Dec 20, 2010
Commits on Dec 18, 2010
  1. Upgrade ibrowse to version 2.1.1

    This ibrowse release includes a few important fixes.
    See https://github.com/cmullaparthi/ibrowse for the list of fixes.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1050633 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Dec 18, 2010
  2. Use safer JSON.parse()

    Thanks Jason Smith for bringing this into attention.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1050621 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Dec 18, 2010
Commits on Dec 16, 2010
  1. Removed duplicated function

    An equivalent exists (couch_util:to_integer/1), but for this particular case it's not needed.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1050163 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Dec 16, 2010
Commits on Dec 14, 2010
Commits on Dec 13, 2010
  1. COUCHDB-984 - Fix spinner.gif

    Thanks to Nathan Vander Wilt for the report and Sebastian Cohnen for the fix.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1045203 13f79535-47bb-0310-9956-ffa450edef68
    davisp committed Dec 13, 2010
Commits on Dec 8, 2010
  1. Fix compactor crash when .compact file is missing header

    Users affected by COUCHDB-968 can take advantage of this patch to
    force a compaction in retry mode and thus remove the duplicates.
    Simply create an empty dbname.couch.compact file in the database_dir
    before triggering the compaction for dbname.
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1043540 13f79535-47bb-0310-9956-ffa450edef68
    kocolosk committed Dec 8, 2010
  2. Calculate and verify MD5 digests outside of a couch_file server

    This has a significant positive impact on the performance, both for readers and writers,
    when there are several requests in parallel acessing the same database or view index file.
    
    $ node tests/compare_write_and_read.js --wclients 100 --rclients 200 \
      -name1 md5_out -name2 trunk \
      -url1 http://localhost:5984/ -url2 http://localhost:5985/ \
      --duration 120
    
    
    run 1) http://graphs.mikeal.couchone.com/#/graph/5c859b3e7d1b9bd0488cfe271105130c
    
    run 2) http://graphs.mikeal.couchone.com/#/graph/5c859b3e7d1b9bd0488cfe2711051bba
    
    Closes COUCHDB-980
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1043524 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Dec 8, 2010
  3. Rename doc_to_tree -> to_path and move to couch_doc

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1043453 13f79535-47bb-0310-9956-ffa450edef68
    kocolosk committed Dec 8, 2010
  4. Usort the infos during compaction to remove dupes, COUCHDB-968

    This is not a bulletproof solution; it only removes dupes when the
    they appear in the same batch of 1000 updates.  However, for dupes
    that show up in _all_docs the probability of that happening is quite
    high.  If the dupes are only in _changes a user may need to compact
    twice, once to get the dupes ordered together and a second time to
    remove them.
    
    A more complete solution would be to trigger the compaction in "retry"
    mode, but this is siginificantly slower.
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1043451 13f79535-47bb-0310-9956-ffa450edef68
    kocolosk committed Dec 8, 2010
  5. Prefer values from old tree when merging, COUCHDB-968

    This commit represents a substantial refactor of the key tree merging
    logic, some of which is not strictly necessary for the resolution of
    COUCHDB-968.
    
    Two etap test cases checking the ability to merge in a non-linear tree
    are removed because the functionality is no longer supported.  CouchDB
    only ever merged a linear revision history into an existing revision
    tree.
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1043450 13f79535-47bb-0310-9956-ffa450edef68
    kocolosk committed Dec 8, 2010
  6. Removed all the code that upgrades database files from version 0.9.

    Also reorganized the export declarations in couch_file and couch_stream to be more readable and not exceed 80 characters per line.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1043381 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Dec 8, 2010
  7. Add a dedicated couch_file server to the DB updater process.

    This improves both read and write (specially the latest) performance when there's a mix of read and write requests in parallel.
    Closes COUCHDB-976.
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1043352 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Dec 8, 2010
Commits on Dec 7, 2010
  1. Replicator improvement: send "unauthorized" error message instead of …

    …"db_not_found" when a remote endpoint can not be accessed due to authorization.
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1043186 13f79535-47bb-0310-9956-ffa450edef68
    fdmanana committed Dec 7, 2010
Commits on Dec 4, 2010
  1. fix changes test surfaced by previous commit

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1042261 13f79535-47bb-0310-9956-ffa450edef68
    janl committed Dec 4, 2010
  2. show runtime errors in native list functions

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1042260 13f79535-47bb-0310-9956-ffa450edef68
    janl committed Dec 4, 2010
  3. apply fix for COUCHDB-975, thanks Timothy Smith

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1042120 13f79535-47bb-0310-9956-ffa450edef68
    nslater committed Dec 4, 2010
Commits on Dec 3, 2010
  1. fix failing attachment_ranges.js test.

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1041965 13f79535-47bb-0310-9956-ffa450edef68
    rnewson committed Dec 3, 2010
Commits on Dec 1, 2010
Commits on Nov 30, 2010
  1. Upgrade to Mochiweb 1.4.1.

    Modifications from upstream
    
    1) Makefile is replaced by Makefile.am
    2) mochiweb.app.in is custom to us.
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1040473 13f79535-47bb-0310-9956-ffa450edef68
    rnewson committed Nov 30, 2010
Commits on Nov 28, 2010
Commits on Nov 27, 2010
  1. Merge branch 'optional-nm' into trunk

    * optional-nm:
      Make +native compilation of mochijson2.erl a ./configure option.
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1039679 13f79535-47bb-0310-9956-ffa450edef68
    janl committed Nov 27, 2010
  2. rename "readers" to "members" in _security object, keep backwards com…

    …patibility with old security objects"
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1039619 13f79535-47bb-0310-9956-ffa450edef68
    jchris committed Nov 27, 2010
Commits on Nov 26, 2010
  1. Compile mochijson2 with +native.

    Improves latency and req/s for many concurrent writers and large docs.
    
    Does not affect other scenarios negatively.
    
    Slight overall performance increase.
    
    Closes COUCHDB-798.
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1039494 13f79535-47bb-0310-9956-ffa450edef68
    janl committed Nov 26, 2010
  2. Udpate NEWS and CHANGES for 1.2.0-dev

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1039362 13f79535-47bb-0310-9956-ffa450edef68
    janl committed Nov 26, 2010
  3. trunk is 1.2.0-dev now

    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1039361 13f79535-47bb-0310-9956-ffa450edef68
    janl committed Nov 26, 2010
  4. Update erlang_oauth to the latest version.

    Fixes deprecation warnings for R15 and a few minor things:
    
     https://github.com/tim/erlang-oauth/commits/master
    
    (This includes one small patch that I'm sending upstream now)
    
    git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1039345 13f79535-47bb-0310-9956-ffa450edef68
    janl committed Nov 26, 2010