[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

FAIL: locks-test 6/7/11 - Re: svn commit: r34147 - trunk/subversion/libsvn_fs_fs

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Tue, 11 Nov 2008 23:05:46 +0000

FYI...

Looks like this change broke something - see this buildbot result:
<http://www.mobsol.be/buildbot/win32-xp%2520VS2005/builds/1287>.

>From the detailed log:

svn_tests: cannot start a transaction within a transaction
FAIL: locks-test.exe 6: test that locking requires proper credentials
svn_tests: cannot start a transaction within a transaction
FAIL: locks-test.exe 7: test that locking is enforced in final commit step
svn_tests: cannot start a transaction within a transaction
FAIL: locks-test.exe 11: test that locks can expire

- Julian

On Tue, 2008-11-11 at 12:19 -0800, hwright_at_tigris.org wrote:
> Author: hwright
> Date: Tue Nov 11 12:19:26 2008
> New Revision: 34147
>
> Log:
> For FSFS rep-sharing: use SQLite transactions to ensure we don't commit bogus
> represenations to the rep cache.
>
> * subversion/libsvn_fs_fs/fs_fs.c
> (commit_body): Wrap with sqlite transaction handling.
>
> Modified:
> trunk/subversion/libsvn_fs_fs/fs_fs.c
>
> Modified: trunk/subversion/libsvn_fs_fs/fs_fs.c
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/libsvn_fs_fs/fs_fs.c?pathrev=34147&r1=34146&r2=34147
> ==============================================================================
> --- trunk/subversion/libsvn_fs_fs/fs_fs.c Tue Nov 11 11:46:27 2008 (r34146)
> +++ trunk/subversion/libsvn_fs_fs/fs_fs.c Tue Nov 11 12:19:26 2008 (r34147)
> @@ -5282,6 +5282,10 @@ commit_body(void *baton, apr_pool_t *poo
> apr_hash_t *txnprops;
> svn_string_t date;
>
> + /* Start the sqlite transaction. */
> + if (ffd->rep_cache.db)
> + SVN_ERR(svn_sqlite__transaction_begin(ffd->rep_cache.db));
> +
> /* Get the current youngest revision. */
> SVN_ERR(svn_fs_fs__youngest_rev(&old_rev, cb->fs, pool));
>
> @@ -5421,6 +5425,10 @@ commit_body(void *baton, apr_pool_t *poo
> /* Remove this transaction directory. */
> SVN_ERR(svn_fs_fs__purge_txn(cb->fs, cb->txn->id, pool));
>
> + /* Commit the sqlite transaction. */
> + if (ffd->rep_cache.db)
> + SVN_ERR(svn_sqlite__transaction_commit(ffd->rep_cache.db));
> +
> *cb->new_rev_p = new_rev;
>
> return SVN_NO_ERROR;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-11-12 00:06:05 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.