summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-03-26 11:09:22 +0100
committerantirez <antirez@gmail.com>2013-03-27 09:07:43 +0100
commit6cb78606588131de0d75768f6937ce6696ddf6ac (patch)
treead1a735e847786f47d082862ea04680d3a0ba11c
parent611dcb56ee6a07066dd491ffbae102f0498acdcc (diff)
downloadredis-6cb78606588131de0d75768f6937ce6696ddf6ac.tar.gz
Flag PUBLISH as read-only in the command table.
-rw-r--r--src/redis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis.c b/src/redis.c
index f74dfa17a..bcb4de7a9 100644
--- a/src/redis.c
+++ b/src/redis.c
@@ -236,7 +236,7 @@ struct redisCommand redisCommandTable[] = {
{"unsubscribe",unsubscribeCommand,-1,"rpslt",0,NULL,0,0,0,0,0},
{"psubscribe",psubscribeCommand,-2,"rpslt",0,NULL,0,0,0,0,0},
{"punsubscribe",punsubscribeCommand,-1,"rpslt",0,NULL,0,0,0,0,0},
- {"publish",publishCommand,3,"pflt",0,NULL,0,0,0,0,0},
+ {"publish",publishCommand,3,"pfltr",0,NULL,0,0,0,0,0},
{"watch",watchCommand,-2,"rs",0,noPreloadGetKeys,1,-1,1,0,0},
{"unwatch",unwatchCommand,1,"rs",0,NULL,0,0,0,0,0},
{"restore",restoreCommand,4,"awm",0,NULL,1,1,1,0,0},