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

Function scanLaterSetCallback

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

Source from the content-addressed store, hash-verified

507}
508
509void scanLaterSetCallback(void *privdata, const dictEntry *_de) {
510 dictEntry *de = (dictEntry*)_de;
511 long *defragged = privdata;
512 sds sdsele = dictGetKey(de), newsds;
513 if ((newsds = activeDefragSds(sdsele)))
514 (*defragged)++, de->key = newsds;
515 server.stat_active_defrag_scanned++;
516}
517
518long scanLaterSet(robj *ob, unsigned long *cursor) {
519 long defragged = 0;

Callers

nothing calls this directly

Calls 1

activeDefragSdsFunction · 0.85

Tested by

no test coverage detected