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

Function addReplyStatusFormat

src/networking.cpp:656–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656void addReplyStatusFormat(client *c, const char *fmt, ...) {
657 va_list ap;
658 va_start(ap,fmt);
659 sds s = sdscatvprintf(sdsempty(),fmt,ap);
660 va_end(ap);
661 addReplyStatusLength(c,s,sdslen(s));
662 sdsfree(s);
663}
664
665/* Sometimes we are forced to create a new reply node, and we can't append to
666 * the previous one, when that happens, we wanna try to trim the unused space

Callers 3

debugCommandFunction · 0.85
addReplyHelpFunction · 0.85

Calls 5

sdscatvprintfFunction · 0.85
sdsemptyFunction · 0.85
addReplyStatusLengthFunction · 0.85
sdslenFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected