| 7056 | #define RDB_EOF_MARK_SIZE 40 |
| 7057 | |
| 7058 | void 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 | |
| 7073 | void sendCapa() { |
| 7074 | sendReplconf("capa", "eof"); |
no test coverage detected