You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2015/01/17 21:41:44 UTC

svn commit: r1652669 - /subversion/trunk/subversion/libsvn_fs_x/tree.c

Author: stefan2
Date: Sat Jan 17 20:41:44 2015
New Revision: 1652669

URL: http://svn.apache.org/r1652669
Log:
Eliminate an intermediate allocation.

* subversion/libsvn_fs_x/tree.c
  (make_txn_root): For this type of cache, ID is a mere debugging feature.
                   So, a more readily available string will do just fine.

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

Modified: subversion/trunk/subversion/libsvn_fs_x/tree.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/tree.c?rev=1652669&r1=1652668&r2=1652669&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/tree.c (original)
+++ subversion/trunk/subversion/libsvn_fs_x/tree.c Sat Jan 17 20:41:44 2015
@@ -4265,8 +4265,7 @@ make_txn_root(svn_fs_root_t **root_p,
                                       svn_fs_x__dag_deserialize,
                                       APR_HASH_KEY_STRING,
                                       32, 20, FALSE,
-                                      apr_pstrcat(pool, root->txn, ":TXN",
-                                                  SVN_VA_NULL),
+                                      root->txn,
                                       root->pool));
 
   root->fsap_data = frd;