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

Function selectDb

app/redis-6.2.6/src/db.c:551–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551int selectDb(client *c, int id) {
552 if (id < 0 || id >= server.dbnum)
553 return C_ERR;
554 c->db = &server.db[id];
555 return C_OK;
556}
557
558long long dbTotalServerKeyCount() {
559 long long total = 0;

Callers 15

prepareLuaClientFunction · 0.85
loadDataFromDiskFunction · 0.85
createClientFunction · 0.85
resetCommandFunction · 0.85
selectCommandFunction · 0.85
moveCommandFunction · 0.85
copyCommandFunction · 0.85
createAOFClientFunction · 0.85
RM_SelectDbFunction · 0.85
RM_GetThreadSafeContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected