Bug: Transaction is Committed instead of Rollback'ed

Dave Peticolas dave@krondo.com
Wed, 14 Mar 2001 14:45:32 -0800


Derek Atkins writes:
> Dave Peticolas <dave@krondo.com> writes:
> 
> > I guess I'm not sure what you mean. I thought you intended the
> > xaccTransDoRollback function to do the changes to the local
> > transaction that xaccTransRollback does now (this is the bulk
> > of the function, not just the force_it code). Then xaccTransRollback
> > would see if there is a backend implementation and, if so, call
> > that, otherwise it would just call xaccTransDoRollback directly.
> 
> Correct.  However the backend would always want to disable itself
> when it calls the DoRollback function, so that way you wont re-enter
> the Backend during the 'CommitEdit' in certain cases.

Oh, are you referring to the AccountCommitEdit? Because DoRollback
shouldn't be calling TransCommitEdit.

dave