Home
last modified time | relevance | path

Searched refs:hv (Results 1 – 8 of 8) sorted by relevance

/memcached-1.4.29/
H A Dthread.c550 uint32_t hv; in item_get() local
552 item_lock(hv); in item_get()
560 uint32_t hv; in item_touch() local
562 item_lock(hv); in item_touch()
573 uint32_t hv; in item_link() local
576 item_lock(hv); in item_link()
587 uint32_t hv; in item_remove() local
608 uint32_t hv; in item_unlink() local
619 uint32_t hv; in item_update() local
635 uint32_t hv; in add_delta() local
[all …]
H A Dassoc.c78 item *assoc_find(const char *key, const size_t nkey, const uint32_t hv) { in assoc_find() argument
83 (oldbucket = (hv & hashmask(hashpower - 1))) >= expand_bucket) in assoc_find()
87 it = primary_hashtable[hv & hashmask(hashpower)]; in assoc_find()
112 (oldbucket = (hv & hashmask(hashpower - 1))) >= expand_bucket) in _hashitem_before()
116 pos = &primary_hashtable[hv & hashmask(hashpower)]; in _hashitem_before()
156 int assoc_insert(item *it, const uint32_t hv) { in assoc_insert() argument
162 (oldbucket = (hv & hashmask(hashpower - 1))) >= expand_bucket) in assoc_insert()
167 it->h_next = primary_hashtable[hv & hashmask(hashpower)]; in assoc_insert()
168 primary_hashtable[hv & hashmask(hashpower)] = it; in assoc_insert()
182 void assoc_delete(const char *key, const size_t nkey, const uint32_t hv) { in assoc_delete() argument
[all …]
H A Ditems.h9 int do_item_link(item *it, const uint32_t hv); /** may fail if transgresses limits */
10 void do_item_unlink(item *it, const uint32_t hv);
11 void do_item_unlink_nolock(item *it, const uint32_t hv);
15 int do_item_replace(item *it, item *new_it, const uint32_t hv);
32 item *do_item_get(const char *key, const size_t nkey, const uint32_t hv, conn *c);
33 item *do_item_touch(const char *key, const size_t nkey, uint32_t exptime, const uint32_t hv, conn *…
H A Dassoc.h3 item *assoc_find(const char *key, const size_t nkey, const uint32_t hv);
4 int assoc_insert(item *item, const uint32_t hv);
5 void assoc_delete(const char *key, const size_t nkey, const uint32_t hv);
H A Ditems.c359 int do_item_link(item *it, const uint32_t hv) { in do_item_link() argument
373 assoc_insert(it, hv); in do_item_link()
390 assoc_delete(ITEM_key(it), it->nkey, hv); in do_item_unlink()
458 do_item_unlink(it, hv); in do_item_replace()
459 return do_item_link(new_it, hv); in do_item_replace()
753 item *it = assoc_find(key, nkey, hv); in do_item_get()
794 do_item_unlink(it, hv); in do_item_get()
805 do_item_unlink(it, hv); in do_item_get()
831 item *it = do_item_get(key, nkey, hv, c); in do_item_touch()
900 do_item_unlink_nolock(search, hv); in lru_pull_tail()
[all …]
H A Dmemcached.h595 uint64_t *cas, const uint32_t hv);
596 enum store_item_type do_store_item(item *item, int comm, conn* c, const uint32_t hv);
638 int item_replace(item *it, item *new_it, const uint32_t hv);
642 void item_lock(uint32_t hv);
643 void *item_trylock(uint32_t hv);
645 void item_unlock(uint32_t hv);
H A Dslabs.c782 uint32_t hv; in slab_rebalance_move() local
791 hv = 0; in slab_rebalance_move()
821 hv = hash(ITEM_key(it), it->nkey); in slab_rebalance_move()
822 if ((hold_lock = item_trylock(hv)) == NULL) { in slab_rebalance_move()
907 do_item_replace(it, new_it, hv); in slab_rebalance_move()
943 do_item_unlink(it, hv); in slab_rebalance_move()
H A Dmemcached.c2559 enum store_item_type do_store_item(item *it, int comm, conn *c, const uint32_t hv) { in do_store_item() argument
2561 item *old_it = do_item_get(key, it->nkey, hv, c); in do_store_item()
2591 item_replace(old_it, it, hv); in do_store_item()
2644 item_replace(old_it, it, hv); in do_store_item()
2646 do_item_link(it, hv); in do_store_item()
3534 const uint32_t hv) { in do_add_delta() argument
3540 it = do_item_get(key, nkey, hv, c); in do_add_delta()
3610 item_replace(it, new_it, hv); in do_add_delta()