Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9907511B51 for ; Thu, 28 Aug 2014 12:11:49 +0000 (UTC) Received: (qmail 4778 invoked by uid 500); 28 Aug 2014 12:11:38 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 4467 invoked by uid 500); 28 Aug 2014 12:11:38 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 3741 invoked by uid 99); 28 Aug 2014 12:11:38 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2014 12:11:38 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 1AD95A02BBA; Thu, 28 Aug 2014 12:11:38 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: rnewson@apache.org To: commits@couchdb.apache.org Date: Thu, 28 Aug 2014 12:11:50 -0000 Message-Id: In-Reply-To: <149709301f134b60b82ddbd5d3fa6544@git.apache.org> References: <149709301f134b60b82ddbd5d3fa6544@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [14/50] couch commit: updated refs/heads/master to 9d0ac7d Minor cosmetic change 1) Export indentation 2) Comment typo Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/12a6b0ff Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/12a6b0ff Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/12a6b0ff Branch: refs/heads/master Commit: 12a6b0ffbe968c1811486bbf188fba67c58ec4ed Parents: 8b53ec2 Author: Paul J. Davis Authored: Fri Nov 15 12:07:18 2013 -0600 Committer: Robert Newson Committed: Thu Aug 28 13:00:00 2014 +0100 ---------------------------------------------------------------------- src/couch_key_tree.erl | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/12a6b0ff/src/couch_key_tree.erl ---------------------------------------------------------------------- diff --git a/src/couch_key_tree.erl b/src/couch_key_tree.erl index a7f6bb2..bf7e61c 100644 --- a/src/couch_key_tree.erl +++ b/src/couch_key_tree.erl @@ -37,7 +37,7 @@ %% this limit is exceeded only the last 1000 are kept. This comes in to play %% when branches are merged. The comparison has to begin at the same place in %% the branches. A revision id is of the form N-XXXXXXX where N is the current -%% revision. So each path will have a start number, calculated in +%% revision depth. So each path will have a start number, calculated in %% couch_doc:to_path using the formula N - length(RevIds) + 1 So, .eg. if a doc %% was edit 1003 times this start number would be 4, indicating that 3 %% revisions were truncated. @@ -47,9 +47,22 @@ -module(couch_key_tree). --export([merge/3, find_missing/2, get_key_leafs/2, get_full_key_paths/2, get/2]). --export([get_all_leafs/1, count_leafs/1, remove_leafs/2, get_all_leafs_full/1, stem/2]). --export([map/2, mapfold/3, map_leafs/2, fold/3]). +-export([ +count_leafs/1, +find_missing/2, +fold/3, +get/2, +get_all_leafs/1, +get_all_leafs_full/1, +get_full_key_paths/2, +get_key_leafs/2, +map/2, +map_leafs/2, +mapfold/3, +merge/3, +remove_leafs/2, +stem/2 +]). -include_lib("couch/include/couch_db.hrl").