1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00
Files
mariadb/mysql-test/t
Jon Olav Hauglid 6688a4f25c Bug #11766788 (former bug 59986)
Assert in Diagnostics_area::set_ok_status() for XA COMMIT

This assert was triggered if XA COMMIT was issued when an XA transaction
already had encountered an error (e.g. a deadlock) which required
the XA transaction to be rolled back.

In general, the assert is triggered if a statement tries to send OK to
the client when an error has already been reported. It was triggered
in this case because the trans_xa_commit() function first reported an
error, then rolled back the transaction and finally returned FALSE,
indicating success. Since trans_xa_commit() reported success,
mysql_execute_command() tried to report OK, triggering the assert.

This patch fixes the problem by fixing trans_xa_commit() to return TRUE
if it encounters an error that requires rollback, even if the rollback
itself is successful.

Test case added to xa.test.
2011-02-14 14:16:31 +01:00
..
2010-02-25 23:13:11 +04:00
2011-01-25 12:14:28 +05:30
2010-05-26 22:34:25 +08:00
2011-01-17 15:26:13 +03:00
2010-12-16 21:43:21 +03:00
2010-11-26 16:32:51 +02:00
2010-11-26 16:32:51 +02:00
2010-07-14 09:57:50 -06:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2011-02-02 10:18:44 +01:00
2010-12-16 21:43:21 +03:00
2011-01-13 09:07:21 +01:00
2011-02-02 20:16:06 +02:00
2011-01-15 01:02:02 +04:00
2010-12-15 19:15:40 +03:00
2010-11-26 16:32:51 +02:00
2010-06-11 10:15:55 +02:00
2010-01-15 15:42:15 +04:00
2010-01-15 15:42:15 +04:00
2010-07-14 15:05:20 +03:00
2010-04-20 10:51:50 +02:00
2010-08-25 13:17:15 +05:00
2010-07-16 21:25:00 +03:00
2011-02-08 11:21:14 +01:00
2011-01-11 15:15:25 +01:00
2010-04-13 19:04:45 +04:00
2010-11-15 23:31:04 +01:00
2010-09-13 15:56:56 +02:00
2011-01-10 16:13:12 +01:00
2011-01-10 15:08:31 +01:00
2010-02-24 00:22:19 -07:00
2010-10-20 16:56:09 +02:00
2010-10-20 16:56:09 +02:00
2010-10-20 16:56:09 +02:00
2009-12-29 15:19:05 +03:00
2010-02-06 13:28:06 +03:00
2010-07-04 20:35:05 +01:00
2010-07-30 19:28:36 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2010-04-13 19:04:45 +04:00
2011-01-12 10:31:41 +01:00
2011-01-31 15:04:39 +05:30
2011-01-19 15:12:43 +01:00
2010-12-14 13:46:00 +03:00
2011-02-14 14:16:31 +01:00
2011-01-18 09:50:03 +03:00