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

Function scanLaterSet

src/defrag.cpp:541–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541long scanLaterSet(robj *ob, unsigned long *cursor) {
542 long defragged = 0;
543 if (ob->type != OBJ_SET || ob->encoding != OBJ_ENCODING_HT)
544 return 0;
545 dict *d = (dict*)ptrFromObj(ob);
546 *cursor = dictScan(d, *cursor, scanLaterSetCallback, defragDictBucketCallback, &defragged);
547 return defragged;
548}
549
550void scanLaterHashCallback(void *privdata, const dictEntry *_de) {
551 dictEntry *de = (dictEntry*)_de;

Callers 1

defragLaterItemFunction · 0.85

Calls 2

ptrFromObjFunction · 0.85
dictScanFunction · 0.85

Tested by

no test coverage detected