Merge branch '2.3' into develop

This commit is contained in:
Markus Mäkelä
2019-02-07 10:50:27 +02:00
12 changed files with 85 additions and 47 deletions

View File

@ -57,7 +57,8 @@ bool json_extract_field_names(const char* filename, std::vector<Column>& columns
bool rval = false;
json_error_t err;
err.text[0] = '\0';
json_t* obj, * arr;
json_t* obj;
json_t* arr = nullptr;
if ((obj = json_load_file(filename, 0, &err)) && (arr = json_object_get(obj, "fields")))
{

View File

@ -3063,17 +3063,17 @@ void blr_handle_fake_gtid_list(ROUTER_INSTANCE* router,
static bool blr_handle_missing_files(ROUTER_INSTANCE* router,
char* new_file)
{
char* fptr;
char* fptr = strrchr(new_file, '.');
uint32_t new_fseqno;
uint32_t curr_fseqno;
char buf[BLRM_BINLOG_NAME_STR_LEN];
char bigbuf[PATH_MAX + 1];
if (*new_file
&& (fptr = strrchr(new_file, '.')) == NULL)
if (fptr == NULL)
{
return false;
}
if (router->fileroot)
{
MXS_FREE(router->fileroot);