Bug: Transaction is Committed instead of Rollback'ed

Derek Atkins warlord@MIT.EDU
14 Mar 2001 18:48:01 -0500


Dave Peticolas <dave@krondo.com> writes:

> Derek Atkins writes:
> > Sigh.  You're right; I can't reproduce this when I access a file:
> > backend.  This means there is something that I'm not doing right
> > when I load a transaction via RPC.  Any ideas what flags I might
> > not be setting, or at least what's getting checked?
> 
> Ok, that is strange. Off the top of my head I'm guessing an
> unbalanced xaccTransBeginEdit call.

Indeed, that's what it was..  I'm feeling really stupid, now.
Maybe I shouldn't be coding while in a meeting?

> In LedgerMoveCursor, the transaction is only commited if it
> is 'Open', i.e., if a TransBeginEdit has been called but not
> completed.

Yep, this was my problem.  Thanks for pointing me in the right
direction.

> dave

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available