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/11 21:39:38 UTC
svn commit: r1650965 - /subversion/trunk/subversion/libsvn_fs_x/fs.c
Author: stefan2
Date: Sun Jan 11 20:39:37 2015
New Revision: 1650965
URL: http://svn.apache.org/r1650965
Log:
* subversion/libsvn_fs_x/fs.c
(x_freeze_body,
x_freeze_body2,
x_freeze): The POOL passed to "with lock" functions is a SCRATCH_POOL.
Modified:
subversion/trunk/subversion/libsvn_fs_x/fs.c
Modified: subversion/trunk/subversion/libsvn_fs_x/fs.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/fs.c?rev=1650965&r1=1650964&r2=1650965&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/fs.c (original)
+++ subversion/trunk/subversion/libsvn_fs_x/fs.c Sun Jan 11 20:39:37 2015
@@ -158,26 +158,27 @@ struct x_freeze_baton_t {
static svn_error_t *
x_freeze_body(void *baton,
- apr_pool_t *pool)
+ apr_pool_t *scratch_pool)
{
struct x_freeze_baton_t *b = baton;
svn_boolean_t exists;
- SVN_ERR(svn_fs_x__exists_rep_cache(&exists, b->fs, pool));
+ SVN_ERR(svn_fs_x__exists_rep_cache(&exists, b->fs, scratch_pool));
if (exists)
- SVN_ERR(svn_fs_x__lock_rep_cache(b->fs, pool));
+ SVN_ERR(svn_fs_x__lock_rep_cache(b->fs, scratch_pool));
- SVN_ERR(b->freeze_func(b->freeze_baton, pool));
+ SVN_ERR(b->freeze_func(b->freeze_baton, scratch_pool));
return SVN_NO_ERROR;
}
static svn_error_t *
x_freeze_body2(void *baton,
- apr_pool_t *pool)
+ apr_pool_t *scratch_pool)
{
struct x_freeze_baton_t *b = baton;
- SVN_ERR(svn_fs_x__with_write_lock(b->fs, x_freeze_body, baton, pool));
+ SVN_ERR(svn_fs_x__with_write_lock(b->fs, x_freeze_body, baton,
+ scratch_pool));
return SVN_NO_ERROR;
}
@@ -186,7 +187,7 @@ static svn_error_t *
x_freeze(svn_fs_t *fs,
svn_fs_freeze_func_t freeze_func,
void *freeze_baton,
- apr_pool_t *pool)
+ apr_pool_t *scratch_pool)
{
struct x_freeze_baton_t b;
@@ -195,7 +196,7 @@ x_freeze(svn_fs_t *fs,
b.freeze_baton = freeze_baton;
SVN_ERR(svn_fs__check_fs(fs, TRUE));
- SVN_ERR(svn_fs_x__with_pack_lock(fs, x_freeze_body2, &b, pool));
+ SVN_ERR(svn_fs_x__with_pack_lock(fs, x_freeze_body2, &b, scratch_pool));
return SVN_NO_ERROR;
}