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 3AC40C6FD for ; Thu, 7 Aug 2014 15:37:27 +0000 (UTC) Received: (qmail 88400 invoked by uid 500); 7 Aug 2014 15:37:26 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 88246 invoked by uid 500); 7 Aug 2014 15:37:26 -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 87427 invoked by uid 99); 7 Aug 2014 15:37:25 -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, 07 Aug 2014 15:37:25 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id B7C769C29DE; Thu, 7 Aug 2014 15:37:25 +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, 07 Aug 2014 15:38:00 -0000 Message-Id: <2a9e1ec7a9094c31b0d6c31d078c3073@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [38/50] couch commit: updated refs/heads/windsor-merge to 6e60cbe 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/371ae11c Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/371ae11c Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/371ae11c Branch: refs/heads/windsor-merge Commit: 371ae11c070a5ff5be8e56658e39411e9179560e Parents: ff82e5f Author: Paul J. Davis Authored: Fri Nov 15 12:07:18 2013 -0600 Committer: Robert Newson Committed: Wed Aug 6 12:49:04 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/371ae11c/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").