mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-31723: Crash on SET SESSION gtid_seq_no= DEFAULT
A simple "SET SESSION gtid_seq_no= DEFAULT" did not work, it would straight up crash the server! Also, explicitly setting gtid_seq_no to 0 gave an error in --gtid-strict-mode=1. Setting to DEFAULT or 0 should disable any prior setting of gtid_seq_no, so that the next transaction is allocated the next GTID in sequence, as normal. Reviewed-by: Monty <monty@mariadb.org> Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
This commit is contained in:
@ -8,6 +8,7 @@ SELECT @@session.gtid_seq_no;
|
||||
20
|
||||
SET GLOBAL gtid_seq_no= DEFAULT;
|
||||
ERROR HY000: Variable 'gtid_seq_no' is a SESSION variable and can't be used with SET GLOBAL
|
||||
SET SESSION gtid_seq_no= DEFAULT;
|
||||
SET SESSION gtid_seq_no= -1;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect gtid_seq_no value: '-1'
|
||||
|
Reference in New Issue
Block a user