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

Function dbTotalServerKeyCount

src/db.cpp:733–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733long long dbTotalServerKeyCount() {
734 long long total = 0;
735 int j;
736 for (j = 0; j < cserver.dbnum; j++) {
737 total += g_pserver->db[j]->size();
738 }
739 return total;
740}
741
742/*-----------------------------------------------------------------------------
743 * Hooks for key space changes.

Callers 3

useDisklessLoadFunction · 0.85
redisForkFunction · 0.85
rewriteAppendOnlyFileFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected