Bug: Transaction is Committed instead of Rollback'ed

Derek Atkins warlord@MIT.EDU
14 Mar 2001 18:41:02 -0500


Well, LedgerMoveCursor() is calling xaccSRSaveRegEntry(), which winds
up calling xaccTransCommitEdit().  The latter does this because
GetChangeFlags() is returning 1 (MOD_DATE).  So, why does the register
think the date has changed, and why isn't that being undone earlier?

-derek

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.
> 
> In LedgerMoveCursor, the transaction is only commited if it
> is 'Open', i.e., if a TransBeginEdit has been called but not
> completed.
> 
> dave

-- 
       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