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

Re: [bug] vtable=0x00000000 for the new FSFS when doing simultaneous commits

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2004-05-09 01:57:46 CEST

On Sat, 2004-05-08 at 19:24, C.A.T.Magic wrote:
> svn_error_t *
> svn_fs_abort_txn (svn_fs_txn_t *txn, apr_pool_t *pool)
> {
> > return txn->vtable->abort (txn, pool);
> }
>
>
> txn->vtable = 0x00000000

Let me know if the following patch helps:

Index: subversion/libsvn_repos/commit.c
===================================================================
--- subversion/libsvn_repos/commit.c (revision 9652)
+++ subversion/libsvn_repos/commit.c (working copy)
@@ -129,6 +129,7 @@
   struct dir_baton *dirb;
   struct edit_baton *eb = edit_baton;
   svn_revnum_t youngest;
+ svn_fs_txn_t *txn;
 
   /* Ignore BASE_REVISION. We always build our transaction against
      HEAD. However, we will keep it in our dir baton for out of
@@ -137,12 +138,13 @@
 
   /* Begin a subversion transaction, cache its name, and get its
      root object. */
- SVN_ERR (svn_repos_fs_begin_txn_for_commit (&(eb->txn),
+ SVN_ERR (svn_repos_fs_begin_txn_for_commit (&txn,
                                               eb->repos,
                                               youngest,
                                               eb->user,
                                               eb->log_msg,
                                               eb->pool));
+ eb->txn = txn;
   SVN_ERR (svn_fs_txn_root (&(eb->txn_root), eb->txn, eb->pool));
   SVN_ERR (svn_fs_txn_name (&(eb->txn_name), eb->txn, eb->pool));
   

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 9 02:08:11 2004

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.