diff options
author | Oran Agra <oran@redislabs.com> | 2022-04-27 16:32:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 16:32:17 +0300 |
commit | d375595d5e3ae2e5c29e6c00a2dc3d60578fd9fc (patch) | |
tree | c4d753d3ee0109e3513a879af8c5487e002d10a3 /src/t_string.c | |
parent | fb4e0d400ff82117104bde5296c477ad95f8dd41 (diff) | |
parent | c1f3020631ea8640f2b6aa666a245dd76635a807 (diff) | |
download | redis-7.0.0.tar.gz |
Merge pull request #10652 from oranagra/redis-7.0.07.0.0
Redis 7.0.0
Diffstat (limited to 'src/t_string.c')
-rw-r--r-- | src/t_string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/t_string.c b/src/t_string.c index 2b43a5700..7b67b78ce 100644 --- a/src/t_string.c +++ b/src/t_string.c @@ -38,7 +38,7 @@ int getGenericCommand(client *c); *----------------------------------------------------------------------------*/ static int checkStringLength(client *c, long long size) { - if (!(c->flags & CLIENT_MASTER) && size > server.proto_max_bulk_len) { + if (!mustObeyClient(c) && size > server.proto_max_bulk_len) { addReplyError(c,"string exceeds maximum allowed size (proto-max-bulk-len)"); return C_ERR; } @@ -792,7 +792,7 @@ void lcsCommand(client *c) { /* Setup an uint32_t array to store at LCS[i,j] the length of the * LCS A0..i-1, B0..j-1. Note that we have a linear array here, so - * we index it as LCS[j+(blen+1)*j] */ + * we index it as LCS[j+(blen+1)*i] */ #define LCS(A,B) lcs[(B)+((A)*(blen+1))] /* Try to allocate the LCS table, and abort on overflow or insufficient memory. */ |