File tree Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Expand file tree Collapse file tree 4 files changed +28
-3
lines changed Original file line number Diff line number Diff line change
1
+ SELECT WSREP_LAST_SEEN_GTID();
2
+ WSREP_LAST_SEEN_GTID()
3
+ 00000000-0000-0000-0000-000000000000:-1
Original file line number Diff line number Diff line change
1
+ !include ../my.cnf
2
+
3
+ [mysqld.1]
4
+ wsrep-on =OFF
5
+ binlog-format =ROW
6
+ wsrep-provider =none
7
+ wsrep-cluster-address =' gcomm://'
8
+ innodb_autoinc_lock_mode =2
Original file line number Diff line number Diff line change
1
+ #
2
+ # MDEV-23466: SIGABRT in wsrep::server_state::provider on
3
+ # SELECT WSREP_LAST_SEEN_GTID() on optimized builds
4
+ #
5
+
6
+ --source include/have_innodb.inc
7
+ --source include/have_wsrep.inc
8
+ --source include/have_binlog_format_row.inc
9
+
10
+ SELECT WSREP_LAST_SEEN_GTID();
Original file line number Diff line number Diff line change @@ -5379,9 +5379,13 @@ String *Item_func_wsrep_last_written_gtid::val_str_ascii(String *str)
5379
5379
5380
5380
String *Item_func_wsrep_last_seen_gtid::val_str_ascii (String *str)
5381
5381
{
5382
- /* TODO: Should call Wsrep_server_state.instance().last_committed_gtid()
5383
- instead. */
5384
- wsrep::gtid gtid= Wsrep_server_state::instance ().provider ().last_committed_gtid ();
5382
+ wsrep::gtid gtid= wsrep::gtid::undefined ();
5383
+ if (Wsrep_server_state::instance ().is_provider_loaded ())
5384
+ {
5385
+ /* TODO: Should call Wsrep_server_state.instance().last_committed_gtid()
5386
+ instead. */
5387
+ gtid= Wsrep_server_state::instance ().provider ().last_committed_gtid ();
5388
+ }
5385
5389
if (gtid_str.alloc (wsrep::gtid_c_str_len ()))
5386
5390
{
5387
5391
my_error (ER_OUTOFMEMORY, wsrep::gtid_c_str_len ());
You can’t perform that action at this time.
0 commit comments