| 3469 | } |
| 3470 | |
| 3471 | void resetCommandTableStats(void) { |
| 3472 | struct redisCommand *c; |
| 3473 | dictEntry *de; |
| 3474 | dictIterator *di; |
| 3475 | |
| 3476 | di = dictGetSafeIterator(server.commands); |
| 3477 | while((de = dictNext(di)) != NULL) { |
| 3478 | c = (struct redisCommand *) dictGetVal(de); |
| 3479 | c->microseconds = 0; |
| 3480 | c->calls = 0; |
| 3481 | c->rejected_calls = 0; |
| 3482 | c->failed_calls = 0; |
| 3483 | } |
| 3484 | dictReleaseIterator(di); |
| 3485 | |
| 3486 | } |
| 3487 | |
| 3488 | void resetErrorTableStats(void) { |
| 3489 | raxFreeWithCallback(server.errors, zfree); |
no test coverage detected