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

Function scanLaterZset

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

Source from the content-addressed store, hash-verified

497}
498
499long scanLaterZset(robj *ob, unsigned long *cursor) {
500 if (ob->type != OBJ_ZSET || ob->encoding != OBJ_ENCODING_SKIPLIST)
501 return 0;
502 zset *zs = (zset*)ob->ptr;
503 dict *d = zs->dict;
504 scanLaterZsetData data = {zs, 0};
505 *cursor = dictScan(d, *cursor, scanLaterZsetCallback, defragDictBucketCallback, &data);
506 return data.defragged;
507}
508
509void scanLaterSetCallback(void *privdata, const dictEntry *_de) {
510 dictEntry *de = (dictEntry*)_de;

Callers 1

defragLaterItemFunction · 0.85

Calls 1

dictScanFunction · 0.85

Tested by

no test coverage detected