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

Function createMissingClients

src/redis-benchmark.cpp:858–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856}
857
858static void createMissingClients(client c) {
859 int n = 0;
860 while(config.liveclients < config.numclients) {
861 int thread_id = -1;
862 if (config.num_threads)
863 thread_id = config.liveclients % config.num_threads;
864 createClient(NULL,0,c,thread_id);
865
866 /* Listen backlog is quite limited on most systems */
867 if (++n > 64) {
868 usleep(50000);
869 n = 0;
870 }
871 }
872}
873
874extern "C" void asyncFreeDictTable(dictEntry **de) {
875 zfree(de);

Callers 3

clientDoneFunction · 0.85
benchmarkFunction · 0.85
mainFunction · 0.85

Calls 1

createClientFunction · 0.70

Tested by

no test coverage detected