propagate PUBLISH messages using the redis cluster nodes bus. Still need to process the incoming packets of that type. Work in progress.

This commit is contained in:
antirez
2011-10-07 15:37:34 +02:00
parent 623131d408
commit c563ce463b
3 changed files with 82 additions and 12 deletions

View File

@ -263,5 +263,6 @@ void punsubscribeCommand(redisClient *c) {
void publishCommand(redisClient *c) {
int receivers = pubsubPublishMessage(c->argv[1],c->argv[2]);
if (server.cluster_enabled) clusterPropagatePublish(c->argv[1],c->argv[2]);
addReplyLongLong(c,receivers);
}