summaryrefslogtreecommitdiff
path: root/src/server.c
diff options
context:
space:
mode:
authorValentino Geron <valentino@redislabs.com>2020-03-26 11:49:21 +0200
committerValentino Geron <valentino@redislabs.com>2020-03-26 15:46:31 +0200
commit9a1843ef2df09edcc28f4f1b2ace93a39d35cc59 (patch)
tree160e68c683061b2b92136f1d1963a04dc2a12496 /src/server.c
parentc4d7f30e250b4b291e6d5893d9a3323df4a57c7c (diff)
downloadredis-9a1843ef2df09edcc28f4f1b2ace93a39d35cc59.tar.gz
XREAD and XREADGROUP should not be allowed from scripts when BLOCK option is being used
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.c b/src/server.c
index 84439461e..4fc7e0103 100644
--- a/src/server.c
+++ b/src/server.c
@@ -947,11 +947,11 @@ struct redisCommand redisCommandTable[] = {
0,NULL,1,1,1,0,0,0},
{"xread",xreadCommand,-4,
- "read-only no-script @stream @blocking",
+ "read-only @stream @blocking",
0,xreadGetKeys,1,1,1,0,0,0},
{"xreadgroup",xreadCommand,-7,
- "write no-script @stream @blocking",
+ "write @stream @blocking",
0,xreadGetKeys,1,1,1,0,0,0},
{"xgroup",xgroupCommand,-2,