From 5153c16eacf7481819b05c1a0e0b0bb154548308 Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Tue, 25 Aug 2015 11:27:15 +0200 Subject: [PATCH] Added BLRM_MASTER_REGITRATION_QUERY_LEN constant Added BLRM_MASTER_REGITRATION_QUERY_LEN constant --- server/modules/include/blr.h | 3 +++ server/modules/routing/binlog/blr_master.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/server/modules/include/blr.h b/server/modules/include/blr.h index a3712b3a4..e0b626ced 100644 --- a/server/modules/include/blr.h +++ b/server/modules/include/blr.h @@ -176,6 +176,9 @@ /* string len for temp binlog filename */ #define BLRM_SET_HEARTBEAT_QUERY_LEN 80 +/* string len for master registration query */ +#define BLRM_MASTER_REGITRATION_QUERY_LEN 255 + /** * Some useful macros for examining the MySQL Response packets */ diff --git a/server/modules/routing/binlog/blr_master.c b/server/modules/routing/binlog/blr_master.c index 6c9b2771a..6777dfd3d 100644 --- a/server/modules/routing/binlog/blr_master.c +++ b/server/modules/routing/binlog/blr_master.c @@ -325,7 +325,7 @@ char *name; void blr_master_response(ROUTER_INSTANCE *router, GWBUF *buf) { -char query[128]; +char query[BLRM_MASTER_REGITRATION_QUERY_LEN+1]; char task_name[BLRM_TASK_NAME_LEN + 1] = ""; atomic_add(&router->handling_threads, 1);