MXS-1209: added blr_handle_fake_gtid_list

New routine blr_handle_fake_gtid_list added for fake GTID_LIST_EVENT.

blr_file_append O_APPEND is set only if mariadb10_master_gtid is not
set.

blr_file_append() routine could change name in next commits
This commit is contained in:
MassimilianoPinto
2017-05-05 15:42:23 +02:00
parent 1eaed91867
commit ab89685075
4 changed files with 166 additions and 43 deletions

View File

@ -695,6 +695,19 @@ createInstance(SERVICE *service, char **options)
}
}
/**
* Check mariadb10_compat option before any other mariadb10 option.
*/
if (!inst->mariadb10_compat &&
inst->mariadb10_master_gtid)
{
MXS_ERROR("MariaDB Master GTID registration needs"
" MariaDB compatibilty option."
" Please enable it with option 'mariadb10-compatibility=On'");
free_instance(inst);
return NULL;
}
/**
* Force GTID slave request handling if GTID Master registration is On
*/