We should be doing a cmdmatch not a full string match for heartbeat commands

This commit is contained in:
Con Kolivas 2014-10-07 16:45:18 +11:00
parent 4d69bd2423
commit c8a330dbd8

View File

@ -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);
}