subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1623379 - /subversion/trunk/subversion/libsvn_fs_fs/hotcopy.c
Date Mon, 08 Sep 2014 12:38:55 GMT
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;
 }



Mime
View raw message