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

Function selectDb

src/db.cpp:726–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726int selectDb(client *c, int id) {
727 if (id < 0 || id >= cserver.dbnum)
728 return C_ERR;
729 c->db = g_pserver->db[id];
730 return C_OK;
731}
732
733long long dbTotalServerKeyCount() {
734 long long total = 0;

Callers 15

selectCommandFunction · 0.85
moveCommandFunction · 0.85
copyCommandFunction · 0.85
replicaReplayCommandFunction · 0.85
initServerFunction · 0.85
loadDataFromDiskFunction · 0.85
RM_SelectDbFunction · 0.85
RM_GetThreadSafeContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected