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

Function scanLaterHash

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

Source from the content-addressed store, hash-verified

537}
538
539long scanLaterHash(robj *ob, unsigned long *cursor) {
540 long defragged = 0;
541 if (ob->type != OBJ_HASH || ob->encoding != OBJ_ENCODING_HT)
542 return 0;
543 dict *d = ob->ptr;
544 *cursor = dictScan(d, *cursor, scanLaterHashCallback, defragDictBucketCallback, &defragged);
545 return defragged;
546}
547
548long defragQuicklist(redisDb *db, dictEntry *kde) {
549 robj *ob = dictGetVal(kde);

Callers 1

defragLaterItemFunction · 0.85

Calls 1

dictScanFunction · 0.85

Tested by

no test coverage detected