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

Function scanLaterSet

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

Source from the content-addressed store, hash-verified

516}
517
518long scanLaterSet(robj *ob, unsigned long *cursor) {
519 long defragged = 0;
520 if (ob->type != OBJ_SET || ob->encoding != OBJ_ENCODING_HT)
521 return 0;
522 dict *d = ob->ptr;
523 *cursor = dictScan(d, *cursor, scanLaterSetCallback, defragDictBucketCallback, &defragged);
524 return defragged;
525}
526
527void scanLaterHashCallback(void *privdata, const dictEntry *_de) {
528 dictEntry *de = (dictEntry*)_de;

Callers 1

defragLaterItemFunction · 0.85

Calls 1

dictScanFunction · 0.85

Tested by

no test coverage detected