PUBLISH */
| 423 | |
| 424 | /* PUBLISH <channel> <message> */ |
| 425 | void publishCommand(client *c) { |
| 426 | int receivers = pubsubPublishMessage(c->argv[1],c->argv[2]); |
| 427 | if (g_pserver->cluster_enabled) |
| 428 | clusterPropagatePublish(c->argv[1],c->argv[2]); |
| 429 | else |
| 430 | forceCommandPropagation(c,PROPAGATE_REPL); |
| 431 | addReplyLongLong(c,receivers); |
| 432 | } |
| 433 | |
| 434 | /* PUBSUB command for Pub/Sub introspection. */ |
| 435 | void pubsubCommand(client *c) { |
nothing calls this directly
no test coverage detected