summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
authorBrandon Nesterenko <brandon.nesterenko@mariadb.com>2021-11-15 16:33:45 -0700
committerBrandon Nesterenko <brandon.nesterenko@mariadb.com>2022-03-24 12:00:40 -0600
commitcd88b0831f7bea7e313af7d0bd96b7050f6c9d60 (patch)
treee9d2dd4aa7820a32ed1377bad3d98e4d9846f33c /sql/sql_yacc.yy
parent32ab6219bed1ca785914af5b9e4e6553e3b7a94f (diff)
downloadmariadb-git-cd88b0831f7bea7e313af7d0bd96b7050f6c9d60.tar.gz
DBAAS-7828: Primary/replica: configuration change of autocommit=0 can not be applied
Problem: ======== When the mysql.gtid_slave_pos table uses the InnoDB engine, and mysqld starts, it reads the table and begins a transaction. After reading the value, it should end the transaction and release all associated locks. The bug reported in DBAAS-7828 shows that when autocommit is off, the locks are not released, resulting in indefinite hangs on future attempts to change gtid_slave_pos. In particular, the transaction was not properly finalized because thd->server_status was not updated to reflect the end of the transaction. Solution: ======== This patch updates the code to properly commit the transaction after reading gtid_slave_pos during mysqld start-up. Reviewed By: ============ Andrei Elkin <andrei.elkin@mariadb.com>
Diffstat (limited to 'sql/sql_yacc.yy')
0 files changed, 0 insertions, 0 deletions