mysql: begin_work after commit fails



I have a strange problem with mysql 4.1 (innodb engine) and
DBD::mysql 2.9006:

A dbh->begin_work immediately after a dbh->commit fails with
the error "Already in a transaction".

A level 2 trace shows that there are indeed no other DBI calls between
these two:

-> commit for DBD::mysql::db (DBI::db=HASH(0x872feb4)~0x8753170) thr#814bf18
<- commit= 1 at MySQL.pm line 141
-> begin_work in DBD::_::db for DBD::mysql::db (DBI::db=HASH(0x872feb4)~0x8753170) thr#814bf18
1 -> FETCH for DBD::mysql::db (DBI::db=HASH(0x8753170)~INNER 'AutoCommit') thr#814bf18
1 <- FETCH= '' at DBI.pm line 1623
1 -> set_err in DBD::_::common for DBD::mysql::db (DBI::db=HASH(0x8753170)~INNER 1 'Already in a transaction') thr#814bf18
!! ERROR: 1 'Already in a transaction' (err#1)
1 <- set_err= undef at DBI.pm line 1623
!! ERROR: 1 'Already in a transaction' (err#1)
<- begin_work= undef at MySQL.pm line 336

How can this happen?

hp

--
_ | Peter J. Holzer | In our modern say,learn,know in a day
|_|_) | Sysadmin WSR | world, perhaps being an expert is an
| | | hjp@xxxxxxxxx | outdated concept.
__/ | http://www.hjp.at/ | -- Catharine Drozdowski on dbi-users.

Attachment:pgpSytcYhhjh1.pgp
Description: PGP signature



Relevant Pages

  • Re: INFO: task blocked for more than 120 seconds
    ... Call Trace: ... the transaction. ... more thatn 120 seconds. ... There had been need of rain for many days. ...
    (Linux-Kernel)
  • Re: [Info-Ingres] Sun buys MySQL
    ... used MySQL, but from what I recall, tables created in MySQL *by default* ... If you want to use transactions (which you must do if you want to compare ... apples to apples), then you must explicitly create your tables with the ... InnoDB engine, which is a third party add-on (Owned by Oracle! ...
    (comp.databases.ingres)
  • Re: oltp ~10% regression with 2.6.27-rc5 on stoakley machine
    ... sched_switch trace of oltp in 2.6.27-rc4 ... mysql switches to sysbench when it's going to sleep ... Aggresively preempt a task if its avg overlap is very small, ...
    (Linux-Kernel)
  • Server Sizing - HD Performance
    ... ich muss für eine auf MySQL basierende Bilddatenbank für ... Transaction Logs steht und fällt. ... DB-Server mit dedizierten HDs für die TLogs (an SCSI Kontrollern mit BBU ... wie die Transaction Logs bei MySQL heissen und demnach auch nicht ob es ...
    (de.comp.datenbanken.mysql)
  • Re: INFO: task blocked for more than 120 seconds
    ... Call Trace: ... the transaction. ... to disk in ordered mode. ... more thatn 120 seconds. ...
    (Linux-Kernel)