From: Stewart Smith Date: June 22 2012 1:17am Subject: Re: purpose of thd_mark_transaction_to_rollback List-Archive: http://lists.mysql.com/internals/38540 Message-Id: <871ul8rvql.fsf@flamingspork.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 21 Jun 2012 10:45:58 -0400, Zardosht Kasheff w= rote: > 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()) =2D-=20 Stewart Smith --=-=-= Content-Type: application/pgp-signature -----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----- --=-=-=--