Searched refs:copied (Results 1 – 2 of 2) sorted by relevance
35 - ITEM_LINKED must not be set before an item has a key copied into it.
2488 int copied = 0; in _store_item_copy_chunks() local2494 int todo = (dch->size - dch->used < sch->used - copied) in _store_item_copy_chunks()2495 ? dch->size - dch->used : sch->used - copied; in _store_item_copy_chunks()2498 memcpy(dch->data + dch->used, sch->data + copied, todo); in _store_item_copy_chunks()2500 copied += todo; in _store_item_copy_chunks()2506 assert(copied <= sch->used); in _store_item_copy_chunks()2507 if (copied == sch->used) { in _store_item_copy_chunks()2508 copied = 0; in _store_item_copy_chunks()