Commit ecdbaf46 authored by xiaost7's avatar xiaost7 Committed by antirez
Browse files

Cluster: fix clusterNode.name print format on debug message.

It was %40s instead of %.40s, and since the string is not null
terminated it caused random garbage to be displayed, and possibly a
crash.
parent d04afd62
......@@ -1548,7 +1548,7 @@ void clusterCron(void) {
}
}
if (min_ping_node) {
redisLog(REDIS_DEBUG,"Pinging node %40s", min_ping_node->name);
redisLog(REDIS_DEBUG,"Pinging node %.40s", min_ping_node->name);
clusterSendPing(min_ping_node->link, CLUSTERMSG_TYPE_PING);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment