| 6404 | } |
| 6405 | |
| 6406 | void infoCommand(client *c) { |
| 6407 | const char *section = c->argc == 2 ? (const char*)ptrFromObj(c->argv[1]) : "default"; |
| 6408 | |
| 6409 | if (c->argc > 2) { |
| 6410 | addReplyErrorObject(c,shared.syntaxerr); |
| 6411 | return; |
| 6412 | } |
| 6413 | sds info = genRedisInfoString(section); |
| 6414 | addReplyVerbatim(c,info,sdslen(info),"txt"); |
| 6415 | sdsfree(info); |
| 6416 | } |
| 6417 | |
| 6418 | void monitorCommand(client *c) { |
| 6419 | serverAssert(GlobalLocksAcquired()); |
nothing calls this directly
no test coverage detected