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

Function activeDefragQuickListNodes

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

Source from the content-addressed store, hash-verified

423}
424
425long activeDefragQuickListNodes(quicklist *ql) {
426 quicklistNode *node = ql->head;
427 long defragged = 0;
428 while (node) {
429 defragged += activeDefragQuickListNode(ql, &node);
430 node = node->next;
431 }
432 return defragged;
433}
434
435/* when the value has lots of elements, we want to handle it later and not as
436 * part of the main dictionary scan. this is needed in order to prevent latency

Callers 1

defragQuicklistFunction · 0.85

Calls 1

Tested by

no test coverage detected