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

Function scanLaterZsetCallback

app/redis-6.2.6/src/defrag.c:492–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490} scanLaterZsetData;
491
492void scanLaterZsetCallback(void *privdata, const dictEntry *_de) {
493 dictEntry *de = (dictEntry*)_de;
494 scanLaterZsetData *data = privdata;
495 data->defragged += activeDefragZsetEntry(data->zs, de);
496 server.stat_active_defrag_scanned++;
497}
498
499long scanLaterZset(robj *ob, unsigned long *cursor) {
500 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