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

Function scanLaterZsetCallback

src/defrag.cpp:515–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513} scanLaterZsetData;
514
515void scanLaterZsetCallback(void *privdata, const dictEntry *_de) {
516 dictEntry *de = (dictEntry*)_de;
517 scanLaterZsetData *data = (scanLaterZsetData*)privdata;
518 data->defragged += activeDefragZsetEntry(data->zs, de);
519 g_pserver->stat_active_defrag_scanned++;
520}
521
522long scanLaterZset(robj *ob, unsigned long *cursor) {
523 if (ob->type != OBJ_ZSET || ob->encoding != OBJ_ENCODING_SKIPLIST)

Callers

nothing calls this directly

Calls 1

activeDefragZsetEntryFunction · 0.85

Tested by

no test coverage detected