MCPcopy Create free account
hub / github.com/F-Stack/f-stack / resetCommandTableStats

Function resetCommandTableStats

app/redis-6.2.6/src/server.c:3471–3486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3469}
3470
3471void 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
3488void resetErrorTableStats(void) {
3489 raxFreeWithCallback(server.errors, zfree);

Callers 1

configCommandFunction · 0.85

Calls 3

dictGetSafeIteratorFunction · 0.85
dictNextFunction · 0.70
dictReleaseIteratorFunction · 0.70

Tested by

no test coverage detected