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

[BUG] svn_fs_begin_txn

From: Yoshiki Hayashi <yoshiki_at_xemacs.org>
Date: 2001-02-28 11:17:59 CET

svn_fs_begin_txn always return "0" as a transaction ID. I
traced it to allocate_txn_id but I couldn't find the cause.
It correctly tries to put next_id + 1 into transactions
table but somehow it fails to do so.

Below is the patch for fs-test.c. You'll see strcmp in this
patch fails.

Index: fs-test.c
===================================================================
RCS file: /cvs/subversion/subversion/tests/libsvn_fs/fs-test.c,v
retrieving revision 1.14
diff -u -r1.14 fs-test.c
--- fs-test.c 2001/02/28 02:19:55 1.14
+++ fs-test.c 2001/02/28 10:08:43
@@ -257,7 +258,7 @@
       if (SVN_NO_ERROR != svn_fs_begin_txn (&txn, fs, 0, pool))
         return fail();
       
- /* Test that it got id "0", since it's the second txn. */
+ /* Test that it got id "1", since it's the second txn. */
       {
         char *txn_name;
         
@@ -265,7 +266,7 @@
         if (err)
           return fail();
         
- if (strcmp (txn_name, "0") != 0)
+ if (strcmp (txn_name, "1") != 0)
           return fail();
       }
       

-- 
Yoshiki Hayashi
Received on Sat Oct 21 14:36:23 2006

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.