/dports/databases/memcached/memcached-1.6.12/ |
H A D | assoc.c | 88 if ((nkey == it->nkey) && (memcmp(key, ITEM_key(it), nkey) == 0)) { in assoc_find() 114 while (*pos && ((nkey != (*pos)->nkey) || memcmp(key, ITEM_key(*pos), nkey))) { in _hashitem_before() 167 MEMCACHED_ASSOC_INSERT(ITEM_key(it), it->nkey); in assoc_insert() 215 bucket = hash(ITEM_key(it), it->nkey) & hashmask(hashpower); in assoc_maintenance_thread()
|
H A D | items.c | 326 memcpy(ITEM_key(it), key, nkey); in do_item_alloc() 385 uint32_t hv = hash(ITEM_key(it), it->nkey); in do_item_link_fixup() 485 MEMCACHED_ITEM_LINK(ITEM_key(it), it->nkey, it->nbytes); in do_item_link() 507 MEMCACHED_ITEM_UNLINK(ITEM_key(it), it->nkey, it->nbytes); in do_item_unlink() 515 assoc_delete(ITEM_key(it), it->nkey, hv); in do_item_unlink() 523 MEMCACHED_ITEM_UNLINK(ITEM_key(it), it->nkey, it->nbytes); in do_item_unlink_nolock() 531 assoc_delete(ITEM_key(it), it->nkey, hv); in do_item_unlink_nolock() 538 MEMCACHED_ITEM_REMOVE(ITEM_key(it), it->nkey, it->nbytes); in do_item_remove() 549 MEMCACHED_ITEM_UPDATE(ITEM_key(it), it->nkey, it->nbytes); in do_item_update() 623 strncpy(key_temp, ITEM_key(it), it->nkey); in item_cachedump() [all …]
|
H A D | proto_bin.c | 388 MEMCACHED_COMMAND_ADD(c->sfd, ITEM_key(it), it->nkey, in complete_update_bin() 392 MEMCACHED_COMMAND_REPLACE(c->sfd, ITEM_key(it), it->nkey, in complete_update_bin() 396 MEMCACHED_COMMAND_APPEND(c->sfd, ITEM_key(it), it->nkey, in complete_update_bin() 400 MEMCACHED_COMMAND_PREPEND(c->sfd, ITEM_key(it), it->nkey, in complete_update_bin() 404 MEMCACHED_COMMAND_SET(c->sfd, ITEM_key(it), it->nkey, in complete_update_bin() 497 MEMCACHED_COMMAND_TOUCH(c->sfd, ITEM_key(it), it->nkey, in process_bin_get_or_touch() 500 MEMCACHED_COMMAND_GET(c->sfd, ITEM_key(it), it->nkey, in process_bin_get_or_touch() 520 resp_add_iov(c->resp, ITEM_key(it), nkey); in process_bin_get_or_touch() 782 memcpy(mech, ITEM_key((item*)c->item), nkey); in process_bin_complete_sasl_auth() 1308 MEMCACHED_COMMAND_DELETE(c->sfd, ITEM_key(it), it->nkey); in process_bin_delete()
|
H A D | slabs.c | 809 memcpy(ITEM_key(new_it), "deadbeef", 8); in slab_rebalance_alloc() 903 hv = hash(ITEM_key(it), it->nkey); in slab_rebalance_move() 1020 memcpy(ITEM_key(it), "deadbeef", 8); in slab_rebalance_move() 1034 memcpy(ITEM_key((item *)ch), "deadbeef", 8); in slab_rebalance_move() 1048 memcpy(ITEM_key(it), "deadbeef", 8); in slab_rebalance_move() 1072 memcpy(ITEM_key(it), "deadbeef", 8); in slab_rebalance_move() 1130 assert(memcmp(ITEM_key(it), "deadbeef", 8) == 0); in slab_rebalance_finish()
|
H A D | proto_text.c | 179 MEMCACHED_COMMAND_ADD(c->sfd, ITEM_key(it), it->nkey, in complete_nread_ascii() 183 MEMCACHED_COMMAND_REPLACE(c->sfd, ITEM_key(it), it->nkey, in complete_nread_ascii() 187 MEMCACHED_COMMAND_APPEND(c->sfd, ITEM_key(it), it->nkey, in complete_nread_ascii() 191 MEMCACHED_COMMAND_PREPEND(c->sfd, ITEM_key(it), it->nkey, in complete_nread_ascii() 195 MEMCACHED_COMMAND_SET(c->sfd, ITEM_key(it), it->nkey, in complete_nread_ascii() 199 MEMCACHED_COMMAND_CAS(c->sfd, ITEM_key(it), it->nkey, it->nbytes, in complete_nread_ascii() 585 MEMCACHED_COMMAND_GET(c->sfd, ITEM_key(it), it->nkey, in process_get_command() 592 memcpy(p, ITEM_key(it), it->nkey); in process_get_command() 860 memcpy(resp->wbuf + total, ITEM_key(it), it->nkey); in process_meta_command() 1598 MEMCACHED_COMMAND_DELETE(c->sfd, ITEM_key(it), it->nkey); in process_mdelete_command() [all …]
|
H A D | thread.c | 811 hv = hash(ITEM_key(item), item->nkey); in item_link() 824 hv = hash(ITEM_key(item), item->nkey); in item_remove() 845 hv = hash(ITEM_key(item), item->nkey); in item_unlink() 875 hv = hash(ITEM_key(item), item->nkey); in store_item()
|
H A D | crawler.c | 204 char *key = ITEM_key(search); in crawler_expired_eval() 249 uriencode(ITEM_key(it), keybuf, it->nkey, KEY_MAX_URI_ENCODED_LENGTH); in crawler_metadump_eval() 453 uint32_t hv = hash(ITEM_key(search), search->nkey); in item_crawler_thread()
|
H A D | storage.c | 255 new_it = item_alloc(ITEM_key(it), it->nkey, flags, it->exptime, it->nbytes); in storage_get_item() 495 item *hdr_it = do_item_alloc(ITEM_key(it), it->nkey, flags, it->exptime, sizeof(item_hdr)); in storage_write() 800 hdr_it = assoc_find(ITEM_key(it), it->nkey, hv); in storage_compact_readback()
|
H A D | logger.c | 73 memcpy(le->key, ITEM_key(it), it->nkey); in _logger_log_evictions() 88 memcpy(le->key, ITEM_key(it), it->nkey); in _logger_log_ext_write()
|
H A D | memcached.h | 125 #define ITEM_key(item) (((char*)&((item)->data)) \ macro
|
H A D | memcached.c | 1535 char *key = ITEM_key(it); in do_store_item() 1689 stored, comm, ITEM_key(it), it->nkey, it->nbytes, it->exptime, in do_store_item() 2220 MEMCACHED_COMMAND_INCR(c->sfd, ITEM_key(it), it->nkey, value); 2227 MEMCACHED_COMMAND_DECR(c->sfd, ITEM_key(it), it->nkey, value); 2259 new_it = do_item_alloc(ITEM_key(it), it->nkey, flags, it->exptime, res + 2);
|
/dports/databases/beansdb/beansdb-0.7.1.4/src/ |
H A D | item.c | 168 strcpy(ITEM_key(it), key); in item_alloc1()
|
H A D | beansdb.h | 108 #define ITEM_key(item) ((char*)&((item)->end[0])) macro
|
H A D | beansdb.c | 661 char *key = ITEM_key(it); in store_item() 947 add_iov(c, ITEM_key(it), it->nkey) != 0 || in process_get_command() 956 log_debug(">%d sending key %s", c->sfd, ITEM_key(it)); in process_get_command()
|