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 08:51:19 +01:00
parent 8bacc91153
commit b0afff73a1
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);
}
}
@ -2752,9 +2753,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;