MCPcopy Create free account
hub / github.com/F-Stack/f-stack / checkStringLength

Function checkStringLength

app/redis-6.2.6/src/t_string.c:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 *----------------------------------------------------------------------------*/
39
40static int checkStringLength(client *c, long long size) {
41 if (!(c->flags & CLIENT_MASTER) && size > server.proto_max_bulk_len) {
42 addReplyError(c,"string exceeds maximum allowed size (proto-max-bulk-len)");
43 return C_ERR;
44 }
45 return C_OK;
46}
47
48/* The setGenericCommand() function implements the SET operation with different
49 * options and variants. This function is called in order to implement the

Callers 2

setrangeCommandFunction · 0.85
appendCommandFunction · 0.85

Calls 1

addReplyErrorFunction · 0.85

Tested by

no test coverage detected