MXS-154: make gtid and file MARIADB_GTID_INFO fields static
gtid and file MARIADB_GTID_INFO fields are now a fixed size
This commit is contained in:
@ -1064,15 +1064,14 @@ createInstance(SERVICE *service, char **options)
|
||||
inst->current_pos <= 4)
|
||||
{
|
||||
MARIADB_GTID_INFO last_gtid = {};
|
||||
memset(&last_gtid, 0, sizeof(last_gtid));
|
||||
|
||||
/* Get last MariaDB GTID from repo */
|
||||
if (blr_load_last_mariadb_gtid(inst, &last_gtid) &&
|
||||
last_gtid.gtid != NULL)
|
||||
last_gtid.gtid[0])
|
||||
{
|
||||
/* Set MariaDB GTID */
|
||||
strcpy(inst->last_mariadb_gtid, last_gtid.gtid);
|
||||
|
||||
MXS_FREE(last_gtid.gtid);
|
||||
MXS_FREE(last_gtid.file);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user