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

Function resetClient

app/redis-6.2.6/src/redis-benchmark.c:423–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423static void resetClient(client c) {
424 aeEventLoop *el = CLIENT_GET_EVENTLOOP(c);
425 aeDeleteFileEvent(el,c->context->fd,AE_WRITABLE);
426 aeDeleteFileEvent(el,c->context->fd,AE_READABLE);
427 aeCreateFileEvent(el,c->context->fd,AE_WRITABLE,writeHandler,c);
428 c->written = 0;
429 c->pending = config.pipeline;
430}
431
432static void randomizeClientKey(client c) {
433 size_t i;

Callers 1

clientDoneFunction · 0.70

Calls 2

aeDeleteFileEventFunction · 0.85
aeCreateFileEventFunction · 0.85

Tested by

no test coverage detected