Re: purpose of thd_mark_transaction_to_rollback

Stewart Smith <[email protected]> Fri, 22 Jun 2012 11:17:06 +1000
Newsgroups gmane.comp.db.mysql.devel
Message-ID <[email protected]>
On Thu, 21 Jun 2012 10:45:58 -0400, Zardosht Kasheff <[email protected]> wrote:
> What I want to know is if our engine hits a deadlock, and we have NOT
> aborted the transaction internally, are we required to call
> thd_mark_transaction_to_rollback so that "xa end" properly then
> returns the right error. If so, this seems weird, as MySQL got the
> error code earlier, and MySQL should just ensure that "xa end" returns
> the right error without requiring the engine to make an additional
> call.

This is (rather unfortunately) a common thing inside MySQL in the engine
interface (e.g. ha_rnd_init())

-- 
Stewart Smith
signature.asc (application/pgp-signature, 835 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJP48eTAAoJEP08notdpDyv8GUP+wX4EjcgbLKAZnXm1Gir5uDf
EyMkKxTiEeLHP91355RoAWL1E2gq1SV++uffOi2RdhW9RFF7ZxoHgiztC4XkMsb1
JsWMLvJcJgA0GxlKwHp5kN6Ew3gYt0Z7CLNcbvrJ0CjVO1vNkDfATTTOXt5WSeiH
c/tw67TzaSE8vTB1PU+TR583Utz0jsmdg5DmIKfJa9mSjnMK7Qvq5/yvWduMwioN
HyiMz10Hb0FyKM6xTdXPfsr+KQG4s0DFS5uVhPX8Kk5sHyePL+4/MMsHwRGKw0FG
m5Ho5NVBO1AbXpBhbu9fxLUtzRGtYD1mTONmH1yQUPkejo8ItnYf0jNVV/agCGCu
GOtwLIbSPn2xo6W+J6N/Hag0H1I0f0H9GOdlVpUdBcx/qcziSUufaD7kafOFUj4C
+Oe4T4r77Z9+IEQhYhDFJBDFIyxe/92BZJ5g+8e3qHgmNdR8vVbWngxBOFCzkXlL
sX6aqcRgKFQGKEszkDh6SuRH3QPdDXDxFccWrT5HUgDRYFgedeXyZCTYgwlqEsN/
9+kMF/F61IwCnLI7ynm6z9PTv2l7t6HAUdjzBM1UeF9qB4pMveKnvQGe0Zi9BdDS
nI59HON/KYHZg3B4i7NTlKZUpL0Tplt3kRn+57hppxjeL9GiXVTgVOU96xpmVP7c
smLCZOepnrqIpJAXEoPx
=/ldm
-----END PGP SIGNATURE-----