From f3e688373082574d6f469acc282b873658a2321a Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Thu, 15 Apr 2010 16:34:25 +0000 Subject: refactor att compression to allow more encodings. thanks fdmanana. COUCHDB-710 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@934475 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_db.hrl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/couchdb/couch_db.hrl') diff --git a/src/couchdb/couch_db.hrl b/src/couchdb/couch_db.hrl index 09590bc4..5bc6ebaa 100644 --- a/src/couchdb/couch_db.hrl +++ b/src/couchdb/couch_db.hrl @@ -102,12 +102,16 @@ name, type, att_len, - disk_len, % length of the attachment in uncompressed form - % differs from at_len when comp =:= true + disk_len, % length of the attachment in its identity form + % (that is, without a content encoding applied to it) + % differs from att_len when encoding /= identity md5= <<>>, revpos=0, data, - comp=false % gzip compression Y/N + encoding=identity % currently supported values are: + % identity, gzip + % additional values to support in the future: + % deflate, compress }). -- cgit v1.2.3