Home
last modified time | relevance | path

Searched refs:it (Results 1 – 22 of 22) sorted by relevance

/memcached-1.4.29/
H A Ditems.c231 it->next = it->prev = 0; in do_item_alloc()
316 if (it->next) it->next->prev = it; in do_item_link_q()
343 assert(it->next != it); in do_item_unlink_q()
344 assert(it->prev != it); in do_item_unlink_q()
346 if (it->next) it->next->prev = it->prev; in do_item_unlink_q()
347 if (it->prev) it->prev->next = it->next; in do_item_unlink_q()
360 MEMCACHED_ITEM_LINK(ITEM_key(it), it->nkey, it->nbytes); in do_item_link()
495 it = it->next; in item_cachedump()
510 it = it->next; in item_cachedump()
1234 if (it->next) it->next->prev = it->prev; in crawler_unlink_q()
[all …]
H A Dassoc.c79 item *it; in assoc_find() local
85 it = old_hashtable[oldbucket]; in assoc_find()
92 while (it) { in assoc_find()
93 if ((nkey == it->nkey) && (memcmp(key, ITEM_key(it), nkey) == 0)) { in assoc_find()
94 ret = it; in assoc_find()
97 it = it->h_next; in assoc_find()
165 old_hashtable[oldbucket] = it; in assoc_insert()
178 MEMCACHED_ASSOC_INSERT(ITEM_key(it), it->nkey, hash_items); in assoc_insert()
218 item *it, *next; in assoc_maintenance_thread() local
227 for (it = old_hashtable[expand_bucket]; NULL != it; it = next) { in assoc_maintenance_thread()
[all …]
H A Dslabs.c251 item *it = NULL; in do_slabs_alloc_chunked() local
268 if (it->next) it->next->prev = 0; in do_slabs_alloc_chunked()
334 if (it->next) it->next->prev = 0; in do_slabs_alloc()
372 it->prev = 0; in do_slabs_free_chunked()
376 assert(it->next && (void*)it->next->prev == (void*)chunk); in do_slabs_free_chunked()
397 p->slots = it; in do_slabs_free_chunked()
407 item *it; in do_slabs_free() local
422 if (it->next) it->next->prev = it; in do_slabs_free()
751 if (it->next) it->next->prev = it->prev; in slab_rebalance_cut_free()
752 if (it->prev) it->prev->next = it->next; in slab_rebalance_cut_free()
[all …]
H A Ditems.h6 void item_free(item *it);
9 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);
12 void do_item_remove(item *it);
13 void do_item_update(item *it); /** update LRU time to current and reposition */
14 void do_item_update_nolock(item *it);
15 int do_item_replace(item *it, item *new_it, const uint32_t hv);
17 int item_is_flushed(item *it);
28 void item_stats_sizes_add(item *it);
[all …]
H A Dmemcached.c1074 MEMCACHED_COMMAND_CAS(c->sfd, ITEM_key(it), it->nkey, it->nbytes, in complete_nread_ascii()
1246 item *it; in complete_incr_bin() local
1358 *(ITEM_data(it) + it->nbytes - 2) = '\r'; in complete_update_bin()
1359 *(ITEM_data(it) + it->nbytes - 1) = '\n'; in complete_update_bin()
1435 item *it; in process_bin_get_or_touch() local
1462 if (it) { in process_bin_get_or_touch()
1872 if (it == 0 || (it->it_flags & ITEM_CHUNKED)) { in process_bin_sasl_auth()
2175 item *it; in process_bin_update() local
2663 stored, comm, ITEM_key(it), it->nkey); in do_store_item()
3256 if (add_iov(c, ITEM_suffix(it), it->nsuffix + it->nbytes) != 0) in process_get_command()
[all …]
H A DREADME.md12 work with normal select, but it sucks.
27 don't swap. memcached does non-blocking network I/O, but not disk. (it
28 should never go to disk, or you've lost the whole point of it)
H A DBUILD11 you need /usr/include/sys/epoll.h . To get it, you can install the
15 it's http://www.xmailserver.org/linux-patches/epoll-lib-0.9.tar.gz .
16 If you're having any trouble building/installing it, you can just copy
30 compile memcache or link it against libevent. Don't forget that for epoll
H A Dthread.c538 item *it; in item_alloc() local
540 it = do_item_alloc(key, nkey, flags, exptime, nbytes); in item_alloc()
541 return it; in item_alloc()
549 item *it; in item_get() local
553 it = do_item_get(key, nkey, hv, c); in item_get()
555 return it; in item_get()
559 item *it; in item_touch() local
563 it = do_item_touch(key, nkey, exptime, hv, c); in item_touch()
565 return it; in item_touch()
H A Dlogger.c602 static void _logger_log_evictions(logentry *e, item *it) { in _logger_log_evictions() argument
604 …le->exptime = (it->exptime > 0) ? (long long int)(it->exptime - current_time) : (long long int) -1; in _logger_log_evictions()
605 le->latime = current_time - it->time; in _logger_log_evictions()
606 le->it_flags = it->it_flags; in _logger_log_evictions()
607 le->nkey = it->nkey; in _logger_log_evictions()
608 memcpy(le->key, ITEM_key(it), it->nkey); in _logger_log_evictions()
H A Dmemcached.h636 int item_link(item *it);
637 void item_remove(item *it);
638 int item_replace(item *it, item *new_it, const uint32_t hv);
639 void item_unlink(item *it);
640 void item_update(item *it);
H A DDoxyfile38 # If a relative path is entered, it will be relative to the location
166 # be part of the file/class/namespace that contains it.
365 # Set it to YES to include the internal documentation.
698 # functions referencing it will be listed.
816 # it at startup.
858 # it should be included in the master .chm file (NO).
930 # the value YES disables it.
1182 # nicely formatted so it can be parsed by a human reader.
1187 # and Perl will parse it just the same.
1288 # a tag file that is based on the input files it reads.
[all …]
H A DHACKING33 Because the version number changes on each commit, it's good to use a
H A Dconfigure.ac252 # Skip the directory if it isn't there.
268 # Can I compile and link it?
292 AC_MSG_ERROR([libevent is required. You can get it from $LIBEVENT_URL
294 If it's already installed, specify its path using --with-libevent=/dir/
H A DChangeLog215 * The "stats items" command now works again; it broke with the
423 merge and verify it works on Nexenta.
427 committing it)
462 path (it tries to install to doc/memcached.1). This is the correct
537 * ignore SIGPIPE at start instead of crashing in rare cases it
/memcached-1.4.29/scripts/
H A Dmemcached-tool212 my $it = $items{$n};
213 next if (0 == $it->{total_pages});
214 my $size = $it->{chunk_size} < 1024 ?
215 "$it->{chunk_size}B" :
216 sprintf("%.1fK", $it->{chunk_size} / 1024.0);
217 my $full = $it->{free_chunks_end} == 0 ? "yes" : " no";
219 $n, $size, $it->{age}, $it->{total_pages},
220 $it->{number}, $full, $it->{evicted},
221 $it->{evicted_time}, $it->{outofmemory});
H A Dmemcached.service1 # It's not recommended to modify this file in-place, because it will be
30 # such as /dev/null, /dev/zero or /dev/random (as well as the pseudo TTY subsystem) to it,
H A DREADME.damemtop16 and install 'EV' from CPAN. AnyEvent will automagically use it
/memcached-1.4.29/doc/
H A Dprotocol.txt11 just close the connection at any moment it no longer needs it. Note,
25 unstructured data in exactly the same way it received it, as a byte
36 data from a server, it must use the length of the data block (which it
151 only if no one else has updated since I last fetched it."
173 it's followed by an empty data block).
323 without fetching it.
768 before it expired.
832 operation. If you don't want to incur this, leave it off.
851 If an error happens, it will return:
952 | | of parsing it or executing it. |
[all …]
H A Dthreads.txt25 to avoid deadlocks. If a bucket is in use (and not by that thread) it will
35 - ITEM_LINKED must not be set before an item has a key copied into it.
55 point of a percent, and it does not improve scalability.
H A DDoxyfile38 # If a relative path is entered, it will be relative to the location
157 # member inherits the documentation from any documented member that it
164 # be part of the file/class/namespace that contains it.
291 # Set it to YES to include the internal documentation.
592 # functions referencing it will be listed.
717 # it should be included in the master .chm file (NO).
734 # the value YES disables it.
803 # the first chapter. If it is left blank doxygen will generate a
897 # then it will generate one additional man file for each entity
973 # and Perl will parse it just the same.
[all …]
H A Dnew_lru.txt33 `memcached -o lru_maintainer,lru_crawler` - Then it will automatically scan
/memcached-1.4.29/m4/
H A Dc99-backport.m44 # option to output variable CC to make it so. This macro tries
6 # considers the compiler to be in ISO C99 mode if it handles _Bool,
148 dnl Solaris (unused because it causes the compiler to assume C99 semantics for
161 # helps, append it to CC. If eventually successful, run ACTION-IF-AVAILABLE,