Fixed query buffer length in mysql_mon
Fixed query buffer length in mysql_mon
This commit is contained in:
@ -861,8 +861,8 @@ static void set_master_heartbeat(MYSQL_MONITOR *handle, MONITOR_SERVERS *databas
|
|||||||
unsigned long id = handle->id;
|
unsigned long id = handle->id;
|
||||||
time_t heartbeat;
|
time_t heartbeat;
|
||||||
time_t purge_time;
|
time_t purge_time;
|
||||||
char heartbeat_insert_query[128]="";
|
char heartbeat_insert_query[512]="";
|
||||||
char heartbeat_purge_query[128]="";
|
char heartbeat_purge_query[512]="";
|
||||||
|
|
||||||
/* create the maxscale_schema database */
|
/* create the maxscale_schema database */
|
||||||
if (mysql_query(database->con, "CREATE DATABASE IF NOT EXISTS maxscale_schema")) {
|
if (mysql_query(database->con, "CREATE DATABASE IF NOT EXISTS maxscale_schema")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user