Lines Matching refs:old_it

2532 static void _store_item_copy_data(int comm, item *old_it, item *new_it, item *add_it) {  in _store_item_copy_data()  argument
2535 _store_item_copy_chunks(new_it, old_it, old_it->nbytes - 2); in _store_item_copy_data()
2538 memcpy(ITEM_data(new_it), ITEM_data(old_it), old_it->nbytes); in _store_item_copy_data()
2539 … memcpy(ITEM_data(new_it) + old_it->nbytes - 2 /* CRLF */, ITEM_data(add_it), add_it->nbytes); in _store_item_copy_data()
2545 _store_item_copy_chunks(new_it, old_it, old_it->nbytes); in _store_item_copy_data()
2548 … memcpy(ITEM_data(new_it) + add_it->nbytes - 2 /* CRLF */, ITEM_data(old_it), old_it->nbytes); in _store_item_copy_data()
2561 item *old_it = do_item_get(key, it->nkey, hv, c); in do_store_item() local
2567 if (old_it != NULL && comm == NREAD_ADD) { in do_store_item()
2569 do_item_update(old_it); in do_store_item()
2570 } else if (!old_it && (comm == NREAD_REPLACE in do_store_item()
2576 if(old_it == NULL) { in do_store_item()
2583 else if (ITEM_get_cas(it) == ITEM_get_cas(old_it)) { in do_store_item()
2588 c->thread->stats.slab_stats[ITEM_clsid(old_it)].cas_hits++; in do_store_item()
2591 item_replace(old_it, it, hv); in do_store_item()
2595 c->thread->stats.slab_stats[ITEM_clsid(old_it)].cas_badval++; in do_store_item()
2600 (unsigned long long)ITEM_get_cas(old_it), in do_store_item()
2617 if (ITEM_get_cas(it) != ITEM_get_cas(old_it)) { in do_store_item()
2626 flags = (uint32_t) strtoul(ITEM_suffix(old_it), (char **) NULL, 10); in do_store_item()
2628 …new_it = do_item_alloc(key, it->nkey, flags, old_it->exptime, it->nbytes + old_it->nbytes - 2 /* C… in do_store_item()
2635 _store_item_copy_data(comm, old_it, new_it, it); in do_store_item()
2643 if (old_it != NULL) in do_store_item()
2644 item_replace(old_it, it, hv); in do_store_item()
2654 if (old_it != NULL) in do_store_item()
2655 do_item_remove(old_it); /* release our reference */ in do_store_item()