subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1658713 - in /subversion/branches/fsx-1.10/subversion/libsvn_fs_x: dag_cache.c tree.c
Date Tue, 10 Feb 2015 13:35:30 GMT
Author: stefan2
Date: Tue Feb 10 13:35:29 2015
New Revision: 1658713

URL: http://svn.apache.org/r1658713
Log:
On the fsx-1.10 branch: Remove the now unused txn DAG node cache instance.

* subversion/libsvn_fs_x/dag_cache.c
  (fs_txn_root_data_t): Remove cache.

* subversion/libsvn_fs_x/tree.c
  (fs_txn_root_data_t): Same.
  (make_txn_root): Update constructor.

Modified:
    subversion/branches/fsx-1.10/subversion/libsvn_fs_x/dag_cache.c
    subversion/branches/fsx-1.10/subversion/libsvn_fs_x/tree.c

Modified: subversion/branches/fsx-1.10/subversion/libsvn_fs_x/dag_cache.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsx-1.10/subversion/libsvn_fs_x/dag_cache.c?rev=1658713&r1=1658712&r2=1658713&view=diff
==============================================================================
--- subversion/branches/fsx-1.10/subversion/libsvn_fs_x/dag_cache.c (original)
+++ subversion/branches/fsx-1.10/subversion/libsvn_fs_x/dag_cache.c Tue Feb 10 13:35:29 2015
@@ -89,10 +89,6 @@ typedef struct fs_txn_root_data_t
 {
   /* TXN_ID value from the main struct but as a struct instead of a string */
   svn_fs_x__txn_id_t txn_id;
-
-  /* Cache of txn DAG nodes (without their nested noderevs, because
-   * it's mutable). Same keys/values as ffd->rev_node_cache. */
-  svn_cache__t *txn_node_cache;
 } fs_txn_root_data_t;
 
 /* Return the transaction ID to a given transaction ROOT. */

Modified: subversion/branches/fsx-1.10/subversion/libsvn_fs_x/tree.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsx-1.10/subversion/libsvn_fs_x/tree.c?rev=1658713&r1=1658712&r2=1658713&view=diff
==============================================================================
--- subversion/branches/fsx-1.10/subversion/libsvn_fs_x/tree.c (original)
+++ subversion/branches/fsx-1.10/subversion/libsvn_fs_x/tree.c Tue Feb 10 13:35:29 2015
@@ -91,10 +91,6 @@ typedef struct fs_txn_root_data_t
 {
   /* TXN_ID value from the main struct but as a struct instead of a string */
   svn_fs_x__txn_id_t txn_id;
-
-  /* Cache of txn DAG nodes (without their nested noderevs, because
-   * it's mutable). Same keys/values as ffd->rev_node_cache. */
-  svn_cache__t *txn_node_cache;
 } fs_txn_root_data_t;
 
 static svn_fs_root_t *
@@ -3287,20 +3283,6 @@ make_txn_root(svn_fs_root_t **root_p,
   root->txn = svn_fs_x__txn_name(txn_id, root->pool);
   root->txn_flags = flags;
   root->rev = base_rev;
-
-  /* Because this cache actually tries to invalidate elements, keep
-     the number of elements per page down.
-
-     Note that since dag_node_cache_invalidate uses svn_cache__iter,
-     this *cannot* be a memcache-based cache.  */
-  SVN_ERR(svn_cache__create_inprocess(&(frd->txn_node_cache),
-                                      svn_fs_x__dag_serialize,
-                                      svn_fs_x__dag_deserialize,
-                                      APR_HASH_KEY_STRING,
-                                      32, 20, FALSE,
-                                      root->txn,
-                                      root->pool));
-
   root->fsap_data = frd;
 
   *root_p = root;



Mime
View raw message