Commits on May 3, 2013
  1. build with debug infos

    benoitc committed May 3, 2013
Commits on May 2, 2013
  1. fix syntax

    benoitc committed May 2, 2013
  2. fix couch_htppd boot

    benoitc committed May 2, 2013
Commits on Mar 4, 2013
  1. more changes for R16

    benoitc committed Mar 4, 2013
  2. support erlang R16

    benoitc committed Mar 4, 2013
Commits on Feb 10, 2013
Commits on Feb 9, 2013
  1. support JSONP in externals

    rnewson committed with benoitc Oct 20, 2011
  2. Unfix view compaction progress reports

    This reverts the compaction task status progress back to what exists on
    1.2.x. The issue is that we use the number of documents in the database
    instead of the number of docids in the union of all views (the number of
    rows in the view's id btree). In this particular case the desire to have
    seamless view upgrades outweighs fixing the relatively minor UI bug.
    backport from couchdb 1.3.x branch
    benoitc committed Feb 9, 2013
  3. COUCHDB-1654: Transparently update view signatures from <= 1.2.x.

    Updates 1.2.x or earlier view files to 1.3.x or later view files
    transparently, the first time the 1.2.x view file is opened by
    1.3.x or later.
    Here's how it works:
    Before opening a view index,
    If no matching index file is found in the new location:
     calculate the <= 1.2.x view signature
     if a file with that signature lives in the old location
       copy it to the new location with the new signature in the name.
    Then proceed to open the view index as usual.
    After opening, read its header.
    If the header matches the <= 1.2.x style #index_header record:
      upgrade the header to the new #mrheader record
    The next time the view is used, the new header is used.
    If we crash after the rename, but before the header upgrade,
      the header upgrade is done on the next view opening.
    If we crash between upgrading to the new header and writing
      that header to disk, we start with the old header again,
      do the upgrade and write to disk.
    backport from Couchdb 1.3.x branch
    benoitc committed Feb 9, 2013
  4. COUCHDB-1667: Revert index_dir to view_index_dir config option.

    Patch by Alexander Shorin. (backport from couchdb 1.3.x branch)
    benoitc committed Feb 9, 2013
  5. Do not log errors on creating new view index.

    While view index file may be really missed, it's ok for new views
    and this error will be self-healed on next couch_file:open call
    so there is no reason to worry user about.
    Patch by Alexander Shorin.
    janl committed with benoitc Feb 4, 2013
  6. Avoid badmatch when replicator dbnames have leading slashes.

    Closes COUCHDB-317
    Patch by Joan Touzet.
    janl committed with benoitc Jan 26, 2013
Commits on Jan 26, 2013
  1. prevent crash

    benoitc committed Jan 26, 2013
Commits on Jan 8, 2013
  1. fix view seq rettrieving

    benoitc committed Jan 8, 2013
  2. fix pbkdf2 spec

    rnewson committed with benoitc Dec 30, 2012
  3. Delete view files on database deletion

    couch_file:nuke_dir attempts to recurse into subdirectories and delete
    the contents, it does so when couch_file:delete returns {error,
    eperm}. Unfortunately, the subdirectory has been renamed to a random
    uuid before returning, and so the recursive call gets {error, enoent}
    from list:dir(Path) where Path is the original (non-existent)
    subdirectory path.
    View files are not currently deleted when a database is because of
    this (this happened since 1.2.0, no release is broken) because the
    view engine rewrite added a further directory level called 'mrview'.
    This patch modifies nuke_dir to depth-first, solving the issue.
    rnewson committed with benoitc Dec 20, 2012
  4. Ignore multipart epilogue

    rnewson committed with benoitc Dec 19, 2012
  5. Improve script url validation

    rnewson committed with benoitc Dec 18, 2012
Commits on Dec 18, 2012
  1. fix path to get last sequence

    benoitc committed Dec 18, 2012
Commits on Dec 8, 2012
  1. fix badarg error

    benoitc committed Dec 8, 2012
  2. make sure that the vhost server is started.

    wait for the vhost server start before to call it.
    benoitc committed Dec 8, 2012
  3. fix error format

    benoitc committed Dec 8, 2012
  4. Close view files cleanly on DB create/delete

    The shutdown_sync was actually interfering with a clean shutdown
    initiated by the index processes themselves when they received a 'DOWN'
    message from their monitoring of the DB process.  The explicit 'delete'
    cast message in this patch is very probably redundant, but it makes the
    intent clear.  The important bit is to let the index process terminate
    *and* get confirmation of the termination before attempting to nuke the
    kocolosk committed with benoitc Dec 2, 2012
  5. missing validate

    benoitc committed Dec 8, 2012
Commits on Dec 5, 2012
  1. don't use cowboy.

    cowboy was introducing some issue and isn't enough reliable for our
    purpose so for now only use ranch to improve the accepting loop and
    reduce memory and fd leaks.
    benoitc committed Dec 5, 2012
Commits on Dec 4, 2012
  1. useless var

    benoitc committed Dec 4, 2012
  2. COUCHDB-430,514,764 Fix list HTTP header handling.

    Currently calls to getRow() cause the HTTP headers to be sent immediately back
    to the client. This happens even if an error is thrown after the getRow(), but
    before any send(...) or start(...). Worse, if a list throws an exception an
    extra, invalid header is sent to the client (resulting in various bad
    Erlang list handling will now wait until data has been sent BEFORE sending the
    HTTP headers to the client. If an error is reported it will result in an HTTP
    error code as expected. This does not change the behavior of errors thrown
    AFTER data has been sent: They will still result in an HTTP 200 even if an
    error is reported.
    The line protocol between Erlang and os processes has been extended to support
    an optional Header field on "chunks" and "end". The javascript list handling
    has been updated to use this if a new header is set via start(...). This makes
    it possible to begin processing with getRow(), but later reset the headers via
    start(...). Again, if data has been sent(...) the new headers will NOT take
    calebcase committed with benoitc Apr 15, 2012
Commits on Nov 28, 2012