MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / resetClient

Function resetClient

src/redis-benchmark.cpp:428–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

clientDoneFunction · 0.70

Calls 2

aeDeleteFileEventFunction · 0.85
aeCreateFileEventFunction · 0.85

Tested by

no test coverage detected