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

Function initConfigDefaults

src/keydb-diagnostic-tool.cpp:666–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664}
665
666void initConfigDefaults() {
667 config.numclients = 50;
668 config.requests = 100000;
669 config.liveclients = 0;
670 config.el = aeCreateEventLoop(1024*10);
671 config.keepalive = 1;
672 config.datasize = 3;
673 config.pipeline = 1;
674 config.period_ms = 5000;
675 config.showerrors = 0;
676 config.randomkeys = 0;
677 config.randomkeys_keyspacelen = 0;
678 config.quiet = 0;
679 config.csv = 0;
680 config.loop = 0;
681 config.idlemode = 0;
682 config.latency = NULL;
683 config.clients = listCreate();
684 config.hostip = "127.0.0.1";
685 config.hostport = 6379;
686 config.hostsocket = NULL;
687 config.tests = NULL;
688 config.dbnum = 0;
689 config.auth = NULL;
690 config.precision = 1;
691 config.max_threads = MAX_THREADS;
692 config.threads = NULL;
693 config.cluster_mode = 0;
694 config.cluster_node_count = 0;
695 config.cluster_nodes = NULL;
696 config.redis_config = NULL;
697 config.is_fetching_slots = 0;
698 config.is_updating_slots = 0;
699 config.slots_last_update = 0;
700 config.enable_tracking = 0;
701}
702
703/* Returns number of consumed options. */
704int parseOptions(int argc, const char **argv) {

Callers 1

mainFunction · 0.85

Calls 2

aeCreateEventLoopFunction · 0.85
listCreateFunction · 0.85

Tested by

no test coverage detected