using proto-max-bulk-len in checkStringLength for SETRANGE and APPEND
This commit is contained in:
parent
b082164834
commit
912b48e4b9
@ -35,8 +35,8 @@
|
|||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
static int checkStringLength(client *c, long long size) {
|
static int checkStringLength(client *c, long long size) {
|
||||||
if (size > 512*1024*1024) {
|
if (!(c->flags & CLIENT_MASTER) && size > server.proto_max_bulk_len) {
|
||||||
addReplyError(c,"string exceeds maximum allowed size (512MB)");
|
addReplyError(c,"string exceeds maximum allowed size (proto-max-bulk-len)");
|
||||||
return C_ERR;
|
return C_ERR;
|
||||||
}
|
}
|
||||||
return C_OK;
|
return C_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user