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/02 15:05:39 UTC
svn commit: r1649033 - in /subversion/trunk/subversion/libsvn_fs_x: fs.h
transaction.c
Author: stefan2
Date: Fri Jan 2 14:05:38 2015
New Revision: 1649033
URL: http://svn.apache.org/r1649033
Log:
In FSX, begin to rename global structs to meet our coding guidelines.
This is the first of a series of search-replace changes.
* subversion/libsvn_fs_x/fs.h
(fs_x_shared_txn_data_t): Rename to ...
(svn_fs_x__shared_txn_data_t): ... this.
* subversion/libsvn_fs_x/transaction.c
(): s/fs_x_shared_txn_data_t/svn_fs_x__shared_txn_data_t/g
Modified:
subversion/trunk/subversion/libsvn_fs_x/fs.h
subversion/trunk/subversion/libsvn_fs_x/transaction.c
Modified: subversion/trunk/subversion/libsvn_fs_x/fs.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/fs.h?rev=1649033&r1=1649032&r2=1649033&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/fs.h (original)
+++ subversion/trunk/subversion/libsvn_fs_x/fs.h Fri Jan 2 14:05:38 2015
@@ -140,11 +140,11 @@ extern "C" {
relate to a particular transaction in a filesystem (as identified
by transaction id and filesystem UUID). Objects of this type are
allocated in their own subpool of the common pool. */
-typedef struct fs_x_shared_txn_data_t
+typedef struct svn_fs_x__shared_txn_data_t
{
/* The next transaction in the list, or NULL if there is no following
transaction. */
- struct fs_x_shared_txn_data_t *next;
+ struct svn_fs_x__shared_txn_data_t *next;
/* ID of this transaction. */
svn_fs_x__txn_id_t txn_id;
@@ -158,7 +158,7 @@ typedef struct fs_x_shared_txn_data_t
/* The pool in which this object has been allocated; a subpool of the
common pool. */
apr_pool_t *pool;
-} fs_x_shared_txn_data_t;
+} svn_fs_x__shared_txn_data_t;
/* Private FSX-specific data shared between all svn_fs_t objects that
relate to a particular filesystem, as identified by filesystem UUID.
@@ -169,11 +169,11 @@ typedef struct fs_x_shared_data_t
currently active, or NULL if none are. All access to this list,
including the contents of the objects stored in it, is synchronised
under TXN_LIST_LOCK. */
- fs_x_shared_txn_data_t *txns;
+ svn_fs_x__shared_txn_data_t *txns;
/* A free transaction object, or NULL if there is no free object.
Access to this object is synchronised under TXN_LIST_LOCK. */
- fs_x_shared_txn_data_t *free_txn;
+ svn_fs_x__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
Modified: subversion/trunk/subversion/libsvn_fs_x/transaction.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/transaction.c?rev=1649033&r1=1649032&r2=1649033&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/transaction.c (original)
+++ subversion/trunk/subversion/libsvn_fs_x/transaction.c Fri Jan 2 14:05:38 2015
@@ -85,14 +85,14 @@ svn_fs_x__txn_get_id(svn_fs_txn_t *txn)
txn_list_lock mutex). If the transaction does not exist in the list,
then create a new transaction object and return it (if CREATE_NEW is
true) or return NULL (otherwise). */
-static fs_x_shared_txn_data_t *
+static svn_fs_x__shared_txn_data_t *
get_shared_txn(svn_fs_t *fs,
svn_fs_x__txn_id_t txn_id,
svn_boolean_t create_new)
{
fs_x_data_t *ffd = fs->fsap_data;
fs_x_shared_data_t *ffsd = ffd->shared;
- fs_x_shared_txn_data_t *txn;
+ svn_fs_x__shared_txn_data_t *txn;
for (txn = ffsd->txns; txn; txn = txn->next)
if (txn->txn_id == txn_id)
@@ -137,7 +137,7 @@ free_shared_txn(svn_fs_t *fs, svn_fs_x__
{
fs_x_data_t *ffd = fs->fsap_data;
fs_x_shared_data_t *ffsd = ffd->shared;
- fs_x_shared_txn_data_t *txn, *prev = NULL;
+ svn_fs_x__shared_txn_data_t *txn, *prev = NULL;
for (txn = ffsd->txns; txn; prev = txn, txn = txn->next)
if (txn->txn_id == txn_id)
@@ -495,7 +495,7 @@ unlock_proto_rev_body(svn_fs_t *fs, cons
{
const struct unlock_proto_rev_baton *b = baton;
apr_file_t *lockfile = b->lockcookie;
- fs_x_shared_txn_data_t *txn = get_shared_txn(fs, b->txn_id, FALSE);
+ svn_fs_x__shared_txn_data_t *txn = get_shared_txn(fs, b->txn_id, FALSE);
apr_status_t apr_err;
if (!txn)
@@ -557,7 +557,7 @@ get_writable_proto_rev_body(svn_fs_t *fs
{
const struct get_writable_proto_rev_baton *b = baton;
void **lockcookie = b->lockcookie;
- fs_x_shared_txn_data_t *txn = get_shared_txn(fs, b->txn_id, TRUE);
+ svn_fs_x__shared_txn_data_t *txn = get_shared_txn(fs, b->txn_id, TRUE);
/* First, ensure that no thread in this process (including this one)
is currently writing to this transaction's proto-rev file. */