Switch protocol */
| 148 | |
| 149 | /* Switch protocol */ |
| 150 | static void send_hello(redisContext *c, int version) { |
| 151 | redisReply *reply; |
| 152 | int expected; |
| 153 | |
| 154 | reply = redisCommand(c, "HELLO %d", version); |
| 155 | expected = version == 3 ? REDIS_REPLY_MAP : REDIS_REPLY_ARRAY; |
| 156 | assert(reply != NULL && reply->type == expected); |
| 157 | freeReplyObject(reply); |
| 158 | } |
| 159 | |
| 160 | /* Togggle client tracking */ |
| 161 | static void send_client_tracking(redisContext *c, const char *str) { |
no test coverage detected