Author: hwright
Date: Fri Dec 19 02:26:55 2014
New Revision: 1646613

URL: http://svn.apache.org/r1646613
Log:
Remove a couple of redundant assignments and checks.  We already have the
desired source and destination paths, and we already know the kind of the
source subdir, so just cut to the chase and do the hotcopy.

* subversion/libsvn_fs_x/hotcopy.c
  (hotcopy_body): Don't recompute src_subdir and dst_subdir when we already have
                  them handy.

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

Modified: subversion/trunk/subversion/libsvn_fs_x/hotcopy.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/hotcopy.c?rev=1646613&r1=1646612&r2=1646613&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/hotcopy.c (original)
+++ subversion/trunk/subversion/libsvn_fs_x/hotcopy.c Fri Dec 19 02:26:55 2014
@@ -849,14 +849,8 @@ hotcopy_body(void *baton, apr_pool_t *po
     {
       /* Copy the rep cache and then remove entries for revisions
        * that did not make it into the destination. */
-      src_subdir = svn_dirent_join(src_fs->path, REP_CACHE_DB_NAME, pool);
-      dst_subdir = svn_dirent_join(dst_fs->path, REP_CACHE_DB_NAME, pool);
-      SVN_ERR(svn_io_check_path(src_subdir, &kind, pool));
-      if (kind == svn_node_file)
-        {
-          SVN_ERR(svn_sqlite__hotcopy(src_subdir, dst_subdir, pool));
-          SVN_ERR(svn_fs_x__del_rep_reference(dst_fs, src_youngest, pool));
-        }
+      SVN_ERR(svn_sqlite__hotcopy(src_subdir, dst_subdir, pool));
+      SVN_ERR(svn_fs_x__del_rep_reference(dst_fs, src_youngest, pool));
     }
 
   /* Copy the txn-current file. */


Reply via email to