Home
last modified time | relevance | path

Searched refs:sch (Results 1 – 2 of 2) sorted by relevance

/memcached-1.6.32/
Dstorage.c539 item_chunk *sch = (item_chunk *) ITEM_schunk(it); in storage_write() local
547 while (sch && remain) { in storage_write()
548 assert(remain >= sch->used); in storage_write()
549 memcpy((char *)io.buf+copied, sch->data, sch->used); in storage_write()
551 remain -= sch->used; in storage_write()
552 copied += sch->used; in storage_write()
553 sch = sch->next; in storage_write()
Dmemcached.c1481 item_chunk *sch = (item_chunk *) ITEM_schunk(s_it); in _store_item_copy_chunks() local
1486 while (sch && dch && remain) { in _store_item_copy_chunks()
1488 int todo = (dch->size - dch->used < sch->used - copied) in _store_item_copy_chunks()
1489 ? dch->size - dch->used : sch->used - copied; in _store_item_copy_chunks()
1492 memcpy(dch->data + dch->used, sch->data + copied, todo); in _store_item_copy_chunks()
1505 assert(copied <= sch->used); in _store_item_copy_chunks()
1506 if (copied == sch->used) { in _store_item_copy_chunks()
1508 sch = sch->next; in _store_item_copy_chunks()