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

Function lolwutUnstableCommand

app/redis-6.2.6/src/lolwut.c:45–51  ·  view source on GitHub ↗

The default target for LOLWUT if no matching version was found. * This is what unstable versions of Redis will display. */

Source from the content-addressed store, hash-verified

43/* The default target for LOLWUT if no matching version was found.
44 * This is what unstable versions of Redis will display. */
45void lolwutUnstableCommand(client *c) {
46 sds rendered = sdsnew("Redis ver. ");
47 rendered = sdscat(rendered,REDIS_VERSION);
48 rendered = sdscatlen(rendered,"\n",1);
49 addReplyVerbatim(c,rendered,sdslen(rendered),"txt");
50 sdsfree(rendered);
51}
52
53/* LOLWUT [VERSION <version>] [... version specific arguments ...] */
54void lolwutCommand(client *c) {

Callers 1

lolwutCommandFunction · 0.85

Calls 6

sdsnewFunction · 0.85
sdscatFunction · 0.85
sdscatlenFunction · 0.85
addReplyVerbatimFunction · 0.85
sdslenFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected