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

Function sendReplconf

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

Source from the content-addressed store, hash-verified

7056#define RDB_EOF_MARK_SIZE 40
7057
7058void sendReplconf(const char* arg1, const char* arg2) {
7059 fprintf(stderr, "sending REPLCONF %s %s\n", arg1, arg2);
7060 redisReply *reply = redisCommand(context, "REPLCONF %s %s", arg1, arg2);
7061
7062 /* Handle any error conditions */
7063 if(reply == NULL) {
7064 fprintf(stderr, "\nI/O error\n");
7065 exit(1);
7066 } else if(reply->type == REDIS_REPLY_ERROR) {
7067 fprintf(stderr, "REPLCONF %s error: %s\n", arg1, reply->str);
7068 /* non fatal, old versions may not support it */
7069 }
7070 freeReplyObject(reply);
7071}
7072
7073void sendCapa() {
7074 sendReplconf("capa", "eof");

Callers 3

sendCapaFunction · 0.85
sendRdbOnlyFunction · 0.85
slaveModeFunction · 0.85

Calls 2

freeReplyObjectFunction · 0.85
redisCommandClass · 0.70

Tested by

no test coverage detected