bugfix: 远端测试bug
This commit is contained in:
@@ -274,7 +274,9 @@ int main(int argc, char **argv) {
|
||||
redisContext *c = redisConnect(host, port);
|
||||
if (!c || c->err) die(c, "connect failed");
|
||||
|
||||
printf("Connected to %s:%d\n", host, port);
|
||||
redisReply *reply = redisCommand(c, "MEMPRINT");
|
||||
|
||||
printf("Connected to %s:%d, %lld\n", host, port, reply->integer);
|
||||
|
||||
if(mode == 0){
|
||||
save(c);
|
||||
|
||||
Reference in New Issue
Block a user