MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / addReplyErrorSds

Function addReplyErrorSds

src/networking.cpp:623–627  ·  view source on GitHub ↗

See addReplyErrorLength for expectations from the input string. */ As a side effect the SDS string is freed. */

Source from the content-addressed store, hash-verified

621/* See addReplyErrorLength for expectations from the input string. */
622/* As a side effect the SDS string is freed. */
623void addReplyErrorSds(client *c, sds err) {
624 addReplyErrorLength(c,err,sdslen(err));
625 afterErrorReply(c,err,sdslen(err));
626 sdsfree(err);
627}
628
629/* See addReplyErrorLength for expectations from the formatted string.
630 * The formatted string is safe to contain \r and \n anywhere. */

Callers 2

clusterRedirectClientFunction · 0.85
rejectCommandFormatFunction · 0.85

Calls 4

addReplyErrorLengthFunction · 0.85
sdslenFunction · 0.85
afterErrorReplyFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected