subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1589368 - /subversion/trunk/subversion/libsvn_fs_fs/fs.h
Date Wed, 23 Apr 2014 10:56:48 GMT
Author: stefan2
Date: Wed Apr 23 10:56:47 2014
New Revision: 1589368

URL: http://svn.apache.org/r1589368
Log:
* subversion/libsvn_fs_fs/fs.h
  (fs_fs_shared_data_t): Document the lock acquisition ordering.
                         No functional change.

Modified:
    subversion/trunk/subversion/libsvn_fs_fs/fs.h

Modified: subversion/trunk/subversion/libsvn_fs_fs/fs.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/fs.h?rev=1589368&r1=1589367&r2=1589368&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/fs.h (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/fs.h Wed Apr 23 10:56:47 2014
@@ -236,6 +236,12 @@ typedef struct fs_fs_shared_data_t
      Access to this object is synchronised under TXN_LIST_LOCK. */
   fs_fs_shared_txn_data_t *free_txn;
 
+  /* The following lock must be taken out in reverse order of their
+     declaration here.  Any subset may be acquired and held at any given
+     time but their relative acquisition order must not change.
+
+     (lock 'txn-current' before 'pack' before 'write' before 'txn-list') */
+
   /* A lock for intra-process synchronization when accessing the TXNS list. */
   svn_mutex__t *txn_list_lock;
 



Mime
View raw message