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 */
| 436 | * part of the main dictionary scan. this is needed in order to prevent latency |
| 437 | * spikes when handling large items */ |
| 438 | void 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. */ |
| 444 | long scanLaterList(robj *ob, unsigned long *cursor, long long endtime, long long *defragged) { |
no test coverage detected