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

Function dbnumFromDb

src/db.cpp:3272–3280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3270}
3271
3272int dbnumFromDb(redisDb *db)
3273{
3274 for (int i = 0; i < cserver.dbnum; ++i)
3275 {
3276 if (g_pserver->db[i] == db)
3277 return i;
3278 }
3279 serverPanic("invalid database pointer");
3280}
3281
3282void redisDbPersistentData::prefetchKeysAsync(client *c, parsed_command &command)
3283{

Callers 1

cronCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected