PUBLISH */
| 403 | |
| 404 | /* PUBLISH <channel> <message> */ |
| 405 | void publishCommand(client *c) { |
| 406 | int receivers = pubsubPublishMessage(c->argv[1],c->argv[2]); |
| 407 | if (server.cluster_enabled) |
| 408 | clusterPropagatePublish(c->argv[1],c->argv[2]); |
| 409 | else |
| 410 | forceCommandPropagation(c,PROPAGATE_REPL); |
| 411 | addReplyLongLong(c,receivers); |
| 412 | } |
| 413 | |
| 414 | /* PUBSUB command for Pub/Sub introspection. */ |
| 415 | void pubsubCommand(client *c) { |
nothing calls this directly
no test coverage detected