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

Function defragLater

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

when the value has lots of elements, we want to handle it later and not as * part of the main dictionary scan. this is needed in order to prevent latency * spikes when handling large items */

Source from the content-addressed store, hash-verified

436 * part of the main dictionary scan. this is needed in order to prevent latency
437 * spikes when handling large items */
438void defragLater(redisDb *db, dictEntry *kde) {
439 sds key = sdsdup(dictGetKey(kde));
440 listAddNodeTail(db->defrag_later, key);
441}
442
443/* returns 0 if no more work needs to be been done, and 1 if time is up and more work is needed. */
444long scanLaterList(robj *ob, unsigned long *cursor, long long endtime, long long *defragged) {

Callers 6

defragQuicklistFunction · 0.85
defragZsetSkiplistFunction · 0.85
defragHashFunction · 0.85
defragSetFunction · 0.85
defragStreamFunction · 0.85
defragModuleFunction · 0.85

Calls 2

sdsdupFunction · 0.85
listAddNodeTailFunction · 0.85

Tested by

no test coverage detected