FreeBSD/contrib/subversion/subversion/libsvn_fs_x/tree.c
/* Construct a root object referring to the root of the transaction
   named TXN and based on revision BASE_REV in FS, with FLAGS to
   describe transaction's behavior.  Create the new root in RESULT_POOL.  */
Construct a root object referring to the root of the transaction
named TXN and based on revision BASE_REV in FS, with FLAGS to
describe transaction's behavior.  Create the new root in RESULT_POOL.
Construct a root object referring to the root of the transaction named TXN and based on revision BASE_REV in FS with FLAGS to describe transaction ' s behavior . Create the new root in RESULT_POOL .
static svn_error_t *
make_txn_root(svn_fs_root_t **root_p,
              svn_fs_t *fs,
              svn_fs_x__txn_id_t txn_id,
              svn_revnum_t base_rev,
              apr_uint32_t flags,
              apr_pool_t *result_pool)
{
  svn_fs_root_t *root = make_root(fs, result_pool);
  fs_txn_root_data_t *frd = apr_pcalloc(root->pool, sizeof(*frd));
  frd->txn_id = txn_id;
  root->is_txn_root = TRUE;
  root->txn = svn_fs_x__txn_name(txn_id, root->pool);
  root->txn_flags = flags;
  root->rev = base_rev;
  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;
  return SVN_NO_ERROR;
}
static svn_error_t * make_txn_root ( svn_fs_root_t * * root_p , svn_fs_t * fs , svn_fs_x__txn_id_t txn_id , svn_revnum_t base_rev , apr_uint32_t flags , apr_pool_t * result_pool ) { svn_fs_root_t * root = make_root ( fs , result_pool ) ; fs_txn_root_data_t * frd = apr_pcalloc ( root -> pool , sizeof ( * frd ) ) ; frd -> txn_id = txn_id ; root -> is_txn_root = TRUE ; root -> txn = svn_fs_x__txn_name ( txn_id , root -> pool ) ; root -> txn_flags = flags ; root -> rev = base_rev ; 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 ; return SVN_NO_ERROR ; }
Construct a root object referring to the root of the transaction
named TXN and based on revision BASE_REV in FS, with FLAGS to
describe transaction's behavior.
Construct a root object referring to the root of the transaction named TXN and based on revision BASE_REV in FS with FLAGS to describe transaction ' s behavior .
/* 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.  */