| 38 | *----------------------------------------------------------------------------*/ |
| 39 | |
| 40 | static 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 |
no test coverage detected