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

Function activeDefragQuickListNodes

src/defrag.cpp:448–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448long activeDefragQuickListNodes(quicklist *ql) {
449 quicklistNode *node = ql->head;
450 long defragged = 0;
451 while (node) {
452 defragged += activeDefragQuickListNode(ql, &node);
453 node = node->next;
454 }
455 return defragged;
456}
457
458/* when the value has lots of elements, we want to handle it later and not as
459 * 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