Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-710

Refactoring of attachment compression to allow for content-encodings other than gzip

    XMLWordPrintableJSON

Details

    Description

      The following patch does:

      1) Changes the internal implementation of the attachment compression feature to allow the support of content encodings other than gzip. After this adding support to other encodings (deflate and compress) is trivial.

      2) Removes the property "gzip_length" from an attachment stub, introduced in ticket 639, and adds 2 new ones: "encoding" and "encoded_length".

      3) Renames the doc query parameter ?att_gzip_length=true, also introduced in ticket 639, to ?att_encoding_info=true

      All tests, Etap and JS, are passing. Also tested this code with an existing 0.11 DB file.

      This patch is for trunk only.

      Attachments

        1. refactoring-support-multiple-att-encodings.patch
          37 kB
          Filipe David Borba Manana

        Activity

          People

            kocolosk Adam Kocoloski
            fdmanana Filipe David Borba Manana
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: