From d5c7a398d2069fee40d2ec94afc0452b3790f949 Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Mon, 10 Aug 2015 11:19:57 +0200 Subject: [PATCH] Updated message log for not existent binlogdir Updated message log for not existent binlogdir --- server/modules/routing/binlog/blr.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/modules/routing/binlog/blr.c b/server/modules/routing/binlog/blr.c index 8eb76a438..e6f11ed7f 100644 --- a/server/modules/routing/binlog/blr.c +++ b/server/modules/routing/binlog/blr.c @@ -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