[Spacewalk-list] monitoring-data-cleanup fails: "Already in transaction"

Jan Pazdziora jpazdziora at redhat.com
Mon May 16 11:54:00 UTC 2011


On Mon, May 16, 2011 at 12:35:49PM +0100, David Nutter wrote:
> On Mon, May 16, 2011 at 01:23:03PM +0200, Jan Pazdziora wrote:
> 
> > Could you please just delete / comment out the
> > 
> > 	$ini->dbh->begin_work;
> > 
> > calls -- the database handle now is not autocommit-ing, so that
> > begin_work call is not needed anymore.
> 
> Aha, thanks :)
> 
> I assume now that autocommit is on that --dry-run as currently coded
> has no effect as it requires a transaction rollback?

The AutoCommit is off. Any other database operations are now
transactional even if they were AutoCommitting in the past.

Which I suspect might also be the cause of the other problems that
you've reported with monitoring in Spacewalk 1.4. Sadly, I was not
able to find the time needed to investigate that theory more. If you
have a Spacewalk server where you could check it, that would be great.

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat




More information about the Spacewalk-list mailing list