mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-26: Global Transaction ID
- Fix that binlog_gtid_pos() (and hence slave connect) does not work correctly in the very first binlog file (due to not logging empty Gtid_list_log_event). - Remove one instance of the stupid domain_id-0-is-implicit. - Rename the confusing Gtid_Pos_Auto in SHOW SLAVE STATUS to Using_Gtid. - Fix memory leak.
This commit is contained in:
@@ -735,7 +735,7 @@ gtid_find_binlog_file(slave_connection_state *state, char *out_name)
|
||||
{
|
||||
MEM_ROOT memroot;
|
||||
binlog_file_entry *list;
|
||||
Gtid_list_log_event *glev;
|
||||
Gtid_list_log_event *glev= NULL;
|
||||
const char *errormsg= NULL;
|
||||
IO_CACHE cache;
|
||||
File file = (File)-1;
|
||||
@@ -780,6 +780,8 @@ gtid_find_binlog_file(slave_connection_state *state, char *out_name)
|
||||
strmake(out_name, buf, FN_REFLEN);
|
||||
goto end;
|
||||
}
|
||||
delete glev;
|
||||
glev= NULL;
|
||||
list= list->next;
|
||||
}
|
||||
|
||||
@@ -789,6 +791,8 @@ gtid_find_binlog_file(slave_connection_state *state, char *out_name)
|
||||
"have been purged.";
|
||||
|
||||
end:
|
||||
if (glev)
|
||||
delete glev;
|
||||
if (file != (File)-1)
|
||||
{
|
||||
end_io_cache(&cache);
|
||||
|
Reference in New Issue
Block a user