Author: stefan2
Date: Sat Jan 17 20:33:25 2015
New Revision: 1652666
URL: http://svn.apache.org/r1652666
Log:
Since r1652664, the only caller of svn_fs_x__dag_revision_root uses
pre-checked revision numbers, we can simplify its code and the pool
parameter becomes a pure result pool.
* subversion/libsvn_fs_x/dag.c
(svn_fs_x__dag_revision_root): Directly construct the root noderev ID.
The POOL is a pure RESULT_POOL.
* subversion/libsvn_fs_x/dag.h
(svn_fs_x__dag_revision_root): Sync declaration with the implementation.
Modified:
subversion/trunk/subversion/libsvn_fs_x/dag.c
subversion/trunk/subversion/libsvn_fs_x/dag.h
Modified: subversion/trunk/subversion/libsvn_fs_x/dag.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/dag.c?rev=1652666&r1=1652665&r2=1652666&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/dag.c (original)
+++ subversion/trunk/subversion/libsvn_fs_x/dag.c Sat Jan 17 20:33:25 2015
@@ -651,18 +651,18 @@ svn_error_t *
svn_fs_x__dag_revision_root(dag_node_t **node_p,
svn_fs_t *fs,
svn_revnum_t rev,
- apr_pool_t *pool)
+ apr_pool_t *result_pool)
{
dag_node_t *new_node;
/* Construct the node. */
- new_node = apr_pcalloc(pool, sizeof(*new_node));
+ new_node = apr_pcalloc(result_pool, sizeof(*new_node));
new_node->fs = fs;
- SVN_ERR(svn_fs_x__rev_get_root(&new_node->id, fs, rev, pool));
+ svn_fs_x__init_rev_root(&new_node->id, rev);
svn_fs_x__id_reset(&new_node->fresh_root_predecessor_id);
/* Grab the contents so we can inspect the node's kind and created path. */
- new_node->node_pool = pool;
+ new_node->node_pool = result_pool;
/* Initialize the KIND and CREATED_PATH attributes */
new_node->kind = svn_node_dir;
Modified: subversion/trunk/subversion/libsvn_fs_x/dag.h
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/dag.h?rev=1652666&r1=1652665&r2=1652666&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/dag.h (original)
+++ subversion/trunk/subversion/libsvn_fs_x/dag.h Sat Jan 17 20:33:25 2015
@@ -252,12 +252,12 @@ svn_fs_x__dag_set_has_mergeinfo(dag_node
/* Open the root of revision REV of filesystem FS, allocating from
- POOL. Set *NODE_P to the new node. */
+ RESULT_POOL. Set *NODE_P to the new node. */
svn_error_t *
svn_fs_x__dag_revision_root(dag_node_t **node_p,
svn_fs_t *fs,
svn_revnum_t rev,
- apr_pool_t *pool);
+ apr_pool_t *result_pool);
/* Set *NODE_P to the root of transaction TXN_ID in FS, allocating