From c8a330dbd87eec53d5cc52e71572a31b17fdc1c7 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 7 Oct 2014 16:45:18 +1100 Subject: [PATCH] We should be doing a cmdmatch not a full string match for heartbeat commands --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index e69f9bf2..c5c50066 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2802,7 +2802,7 @@ static void ckdbq_process(ckpool_t *ckp, char *msg) cmd = response; strsep(&cmd, "."); LOGDEBUG("Got ckdb response: %s cmd %s", response, cmd); - if (!safecmp(cmd, "heartbeat=")) { + if (cmdmatch("heartbeat=", cmd)) { strsep(&cmd, "="); parse_ckdb_cmd(ckp, cmd); }