Defrag callback for radix tree iterator, called for each node, * used in order to defrag the nodes allocations. */
| 654 | /* Defrag callback for radix tree iterator, called for each node, |
| 655 | * used in order to defrag the nodes allocations. */ |
| 656 | int defragRaxNode(raxNode **noderef) { |
| 657 | raxNode *newnode = (raxNode*)activeDefragAlloc(*noderef); |
| 658 | if (newnode) { |
| 659 | *noderef = newnode; |
| 660 | return 1; |
| 661 | } |
| 662 | return 0; |
| 663 | } |
| 664 | |
| 665 | /* returns 0 if no more work needs to be been done, and 1 if time is up and more work is needed. */ |
| 666 | int scanLaterStreamListpacks(robj *ob, unsigned long *cursor, long long endtime, long long *defragged) { |
no test coverage detected