MXS-1075: added blr_fetch_mariadb_gtid() routine

Added generic blr_fetch_mariadb_gtid() routine

inst->binlog_name is now stored into MARIADB_GTID_INFO struct. (it was
missing)
This commit is contained in:
MassimilianoPinto
2017-03-08 09:06:10 +01:00
parent 656a38096c
commit 670150c1c9
3 changed files with 28 additions and 2 deletions

View File

@ -2734,6 +2734,7 @@ static void mariadb_gtid_info_free(MARIADB_GTID_INFO *in)
if (in)
{
MXS_FREE(in->gtid);
MXS_FREE(in->file);
MXS_FREE(in);
}
}
@ -2753,9 +2754,11 @@ static MARIADB_GTID_INFO *mariadb_gtid_info_dup(const MARIADB_GTID_INFO *in)
{
MXS_FREE(rval);
MXS_FREE(gtid);
MXS_FREE(file);
return NULL;
}
rval->gtid = gtid;
rval->file = file;
rval->start = in-> start;
rval->end = in->end;