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

Function cliPushHandler

app/redis-6.2.6/src/redis-cli.c:1278–1292  ·  view source on GitHub ↗

Output any spontaneous PUSH reply we receive */

Source from the content-addressed store, hash-verified

1276
1277/* Output any spontaneous PUSH reply we receive */
1278static void cliPushHandler(void *privdata, void *reply) {
1279 UNUSED(privdata);
1280 sds out;
1281
1282 if (config.output == OUTPUT_STANDARD && isInvalidateReply(reply)) {
1283 out = cliFormatInvalidateTTY(reply);
1284 } else {
1285 out = cliFormatReply(reply, config.output, 0);
1286 }
1287
1288 fwrite(out, sdslen(out), 1, stdout);
1289
1290 freeReplyObject(reply);
1291 sdsfree(out);
1292}
1293
1294static int cliReadReply(int output_raw_strings) {
1295 void *_reply;

Callers

nothing calls this directly

Calls 6

isInvalidateReplyFunction · 0.85
cliFormatInvalidateTTYFunction · 0.85
cliFormatReplyFunction · 0.85
sdslenFunction · 0.85
freeReplyObjectFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected