You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by iv...@apache.org on 2016/01/09 09:39:06 UTC

svn commit: r1723834 - /subversion/trunk/subversion/libsvn_fs_fs/tree.c

Author: ivan
Date: Sat Jan  9 08:39:05 2016
New Revision: 1723834

URL: http://svn.apache.org/viewvc?rev=1723834&view=rev
Log:
Simplify svn_fs_check_path() implementation for FSFS.

* tree.c
  (node_kind): Obtain dag_node_t instance directly via get_dag_node() instead
   of svn_fs_fs__node_id() + svn_fs_fs__dag_get_node(). 

Modified:
    subversion/trunk/subversion/libsvn_fs_fs/tree.c

Modified: subversion/trunk/subversion/libsvn_fs_fs/tree.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/tree.c?rev=1723834&r1=1723833&r2=1723834&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/tree.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/tree.c Sat Jan  9 08:39:05 2016
@@ -1483,14 +1483,10 @@ node_kind(svn_node_kind_t *kind_p,
           const char *path,
           apr_pool_t *pool)
 {
-  const svn_fs_id_t *node_id;
   dag_node_t *node;
 
   /* Get the node id. */
-  SVN_ERR(svn_fs_fs__node_id(&node_id, root, path, pool));
-
-  /* Use the node id to get the real kind. */
-  SVN_ERR(svn_fs_fs__dag_get_node(&node, root->fs, node_id, pool));
+  SVN_ERR(get_dag(&node, root, path, pool));
   *kind_p = svn_fs_fs__dag_node_kind(node);
 
   return SVN_NO_ERROR;