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 2014/09/08 14:38:55 UTC

svn commit: r1623379 - /subversion/trunk/subversion/libsvn_fs_fs/hotcopy.c

Author: stefan2
Date: Mon Sep  8 12:38:52 2014
New Revision: 1623379

URL: http://svn.apache.org/r1623379
Log:
With the instance ID mechanism in place, we can now take out locks on
source *and* target repo.  Hence, we should block the target repo for
any kinds of modification during the hotcopy process.

* subversion/libsvn_fs_fs/hotcopy.c
  (svn_fs_fs__hotcopy): Grab all target repo locks.

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

Modified: subversion/trunk/subversion/libsvn_fs_fs/hotcopy.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/hotcopy.c?rev=1623379&r1=1623378&r2=1623379&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/hotcopy.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/hotcopy.c Mon Sep  8 12:38:52 2014
@@ -1175,8 +1175,8 @@ svn_fs_fs__hotcopy(svn_fs_t *src_fs,
   hbb.notify_baton = notify_baton;
   hbb.cancel_func = cancel_func;
   hbb.cancel_baton = cancel_baton;
-  SVN_ERR(svn_fs_fs__with_write_lock(dst_fs, hotcopy_locking_src_body, &hbb,
-                                     pool));
+  SVN_ERR(svn_fs_fs__with_all_locks(dst_fs, hotcopy_locking_src_body, &hbb,
+                                    pool));
 
   return SVN_NO_ERROR;
 }