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

Function cliPushHandler

src/redis-cli.c:1085–1099  ·  view source on GitHub ↗

Output any spontaneous PUSH reply we receive */

Source from the content-addressed store, hash-verified

1083
1084/* Output any spontaneous PUSH reply we receive */
1085static void cliPushHandler(void *privdata, void *reply) {
1086 UNUSED(privdata);
1087 sds out;
1088
1089 if (config.output == OUTPUT_STANDARD && isInvalidateReply(reply)) {
1090 out = cliFormatInvalidateTTY(reply);
1091 } else {
1092 out = cliFormatReply(reply, config.output, 0);
1093 }
1094
1095 fwrite(out, sdslen(out), 1, stdout);
1096
1097 freeReplyObject(reply);
1098 sdsfree(out);
1099}
1100
1101static int cliReadReply(int output_raw_strings) {
1102 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