diff options
author | dormando <dormando@rydia.net> | 2011-10-03 03:49:24 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2011-11-09 16:06:08 -0800 |
commit | 8fe5bf1fe18935b421d8ed9532a6ad758745edbc (patch) | |
tree | 93b9c60df67fc2cf97e61814219e760f992d7f89 /items.h | |
parent | ca5016c54111e062c771d20fcc4662400713c634 (diff) | |
download | memcached-8fe5bf1fe18935b421d8ed9532a6ad758745edbc.tar.gz |
use item partitioned lock for as much as possible
push cache_lock deeper into the abyss
Diffstat (limited to 'items.h')
-rw-r--r-- | items.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,6 +8,7 @@ bool item_size_ok(const size_t nkey, const int flags, const int nbytes); int do_item_link(item *it, const uint32_t hv); /** may fail if transgresses limits */ void do_item_unlink(item *it, const uint32_t hv); +void do_item_unlink_nolock(item *it, const uint32_t hv); void do_item_remove(item *it); void do_item_update(item *it); /** update LRU time to current and reposition */ int do_item_replace(item *it, item *new_it, const uint32_t hv); @@ -20,7 +21,6 @@ void do_item_stats_sizes(ADD_STAT add_stats, void *c); void do_item_flush_expired(void); item *do_item_get(const char *key, const size_t nkey, const uint32_t hv); -item *do_item_get_nocheck(const char *key, const size_t nkey, const uint32_t hv); item *do_item_touch(const char *key, const size_t nkey, uint32_t exptime, const uint32_t hv); void item_stats_reset(void); extern pthread_mutex_t cache_lock; |