Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF0D692CE for ; Tue, 28 Feb 2012 08:09:02 +0000 (UTC) Received: (qmail 33824 invoked by uid 500); 28 Feb 2012 08:09:02 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 33025 invoked by uid 500); 28 Feb 2012 08:08:52 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 32809 invoked by uid 99); 28 Feb 2012 08:08:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 08:08:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2012 08:08:48 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B23912388860; Tue, 28 Feb 2012 08:08:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1294516 - in /subversion/trunk/subversion/libsvn_fs_fs: fs.h tree.c Date: Tue, 28 Feb 2012 08:08:27 -0000 To: commits@subversion.apache.org From: danielsh@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120228080827.B23912388860@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: danielsh Date: Tue Feb 28 08:08:26 2012 New Revision: 1294516 URL: http://svn.apache.org/viewvc?rev=1294516&view=rev Log: Document caches in some internal structs. * subversion/libsvn_fs_fs/fs.h (fs_fs_data_t.rev_node_cache, fs_fs_data_t.fulltext_cache): * subversion/libsvn_fs_fs/tree.c (fs_txn_root_data_t.txn_node_cache): Document the types of keys and values. Modified: subversion/trunk/subversion/libsvn_fs_fs/fs.h subversion/trunk/subversion/libsvn_fs_fs/tree.c Modified: subversion/trunk/subversion/libsvn_fs_fs/fs.h URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/fs.h?rev=1294516&r1=1294515&r2=1294516&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_fs_fs/fs.h (original) +++ subversion/trunk/subversion/libsvn_fs_fs/fs.h Tue Feb 28 08:08:26 2012 @@ -224,7 +224,8 @@ typedef struct fs_fs_data_t (svn_fs_id_t *). (Not threadsafe.) */ svn_cache__t *rev_root_id_cache; - /* DAG node cache for immutable nodes */ + /* DAG node cache for immutable nodes. Maps (revision, fspath) + to (dag_node_t *). */ svn_cache__t *rev_node_cache; /* A cache of the contents of immutable directories; maps from @@ -232,7 +233,7 @@ typedef struct fs_fs_data_t svn_cache__t *dir_cache; /* Fulltext cache; currently only used with memcached. Maps from - rep key to svn_string_t. */ + rep key (revision/offset) to svn_string_t. */ svn_cache__t *fulltext_cache; /* Pack manifest cache; a cache mapping (svn_revnum_t) shard number to Modified: subversion/trunk/subversion/libsvn_fs_fs/tree.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/tree.c?rev=1294516&r1=1294515&r2=1294516&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_fs_fs/tree.c (original) +++ subversion/trunk/subversion/libsvn_fs_fs/tree.c Tue Feb 28 08:08:26 2012 @@ -115,7 +115,7 @@ typedef struct fs_rev_root_data_t typedef struct fs_txn_root_data_t { /* Cache of txn DAG nodes (without their nested noderevs, because - * it's mutable). */ + * it's mutable). Same keys/values as ffd->rev_node_cache. */ svn_cache__t *txn_node_cache; } fs_txn_root_data_t;