Updated message log for not existent binlogdir

Updated message log for not existent binlogdir
This commit is contained in:
MassimilianoPinto
2015-08-10 11:19:57 +02:00
parent 53f24fb53a
commit d5c7a398d2

View File

@ -442,6 +442,14 @@ int rc = 0;
strcpy(inst->binlog_name, "");
strcpy(inst->prevbinlog, "");
if ((inst->binlogdir == NULL) || (inst->binlogdir != NULL && !strlen(inst->binlogdir))) {
skygw_log_write_flush(LOGFILE_ERROR,
"Error : Service %s, binlog directory is not specified",
service->name);
free(inst);
return NULL;
}
/**
* If binlogdir is not found create it
* On failure don't start the instance