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

Function scanLaterHash

src/defrag.cpp:562–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562long scanLaterHash(robj *ob, unsigned long *cursor) {
563 long defragged = 0;
564 if (ob->type != OBJ_HASH || ob->encoding != OBJ_ENCODING_HT)
565 return 0;
566 dict *d = (dict*)ptrFromObj(ob);
567 *cursor = dictScan(d, *cursor, scanLaterHashCallback, defragDictBucketCallback, &defragged);
568 return defragged;
569}
570
571long defragQuicklist(redisDb *db, dictEntry *kde) {
572 robj *ob = (robj*)dictGetVal(kde);

Callers 1

defragLaterItemFunction · 0.85

Calls 2

ptrFromObjFunction · 0.85
dictScanFunction · 0.85

Tested by

no test coverage detected