Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 10 of 10) sorted by relevance

/memcached-1.4.29/
H A Dcache.c27 free(ret); in cache_create()
33 ret->name = nm; in cache_create()
34 ret->ptr = ptr; in cache_create()
37 ret->destructor = destructor; in cache_create()
42 ret->bufsize = bufsize; in cache_create()
45 return ret; in cache_create()
72 void *ret; in cache_alloc() local
80 if (ret != NULL) { in cache_alloc()
85 free(ret); in cache_alloc()
95 uint64_t *pre = ret; in cache_alloc()
[all …]
H A Dslabs.c214 return ret; in get_page_from_global_pool()
303 return ret; in do_slabs_alloc_chunked()
349 if (ret) { in do_slabs_alloc()
356 return ret; in do_slabs_alloc()
472 return ret; in get_stats()
533 void *ret; in memory_allocate() local
559 return ret; in memory_allocate()
580 void *ret; in slabs_alloc() local
585 return ret; in slabs_alloc()
612 bool ret; in slabs_adjust_mem_limit() local
[all …]
H A Dassoc.c90 item *ret = NULL; in assoc_find() local
94 ret = it; in assoc_find()
101 return ret; in assoc_find()
280 int ret; in start_assoc_maintenance_thread() local
289 if ((ret = pthread_create(&maintenance_tid, NULL, in start_assoc_maintenance_thread()
291 fprintf(stderr, "Can't create thread: %s\n", strerror(ret)); in start_assoc_maintenance_thread()
H A Dthread.c304 int ret; in create_worker() local
310 strerror(ret)); in create_worker()
572 int ret; in item_link() local
577 ret = do_item_link(item, hv); in item_link()
579 return ret; in item_link()
634 enum delta_result_type ret; in add_delta() local
639 ret = do_add_delta(c, key, nkey, incr, delta, buf, cas, hv); in add_delta()
641 return ret; in add_delta()
648 enum store_item_type ret; in store_item() local
653 ret = do_store_item(item, comm, c, hv); in store_item()
[all …]
H A Dlogger.c341 enum logger_parse_entry_ret ret; in logger_thread_read() local
344 ret = logger_thread_parse_entry(e, ls, scratch, &scratch_len); in logger_thread_read()
345 if (ret != LOGGER_PARSE_ENTRY_OK) { in logger_thread_read()
412 int ret = poll(watchers_pollfds, nfd, 0); in logger_thread_poll_watchers() local
414 if (ret < 0) { in logger_thread_poll_watchers()
525 int ret; in start_logger_thread() local
527 if ((ret = pthread_create(&logger_tid, NULL, in start_logger_thread()
529 fprintf(stderr, "Can't start logger thread: %s\n", strerror(ret)); in start_logger_thread()
H A Ditems.c122 unsigned int ret; in noexp_lru_size() local
124 ret = sizes_bytes[id]; in noexp_lru_size()
126 return ret; in noexp_lru_size()
659 bool ret = false; in item_stats_sizes_status() local
662 ret = true; in item_stats_sizes_status()
664 return ret; in item_stats_sizes_status()
1147 int ret; in stop_lru_maintainer_thread() local
1161 int ret; in start_lru_maintainer_thread() local
1169 strerror(ret)); in start_lru_maintainer_thread()
1425 int ret; in stop_item_crawler_thread() local
[all …]
H A Dtestapp.c70 enum test_return ret = TEST_PASS; in cache_fail_constructor_test() local
77 ret = TEST_FAIL; in cache_fail_constructor_test()
80 return ret; in cache_fail_constructor_test()
143 if (ret == TEST_PASS) { in test_issue_161()
144 ret = cache_bulkalloc(512); in test_issue_161()
147 return ret; in test_issue_161()
1835 int ret; in test_binary_pipeline_hickup() local
1898 ret = TEST_FAIL; in test_issue_101()
1916 ret = test_binary_noop(); in test_issue_101()
1929 return ret; in test_issue_101()
[all …]
H A Dmemcached.c366 int ret; in start_conn_timeout_thread() local
374 strerror(ret)); in start_conn_timeout_thread()
1080 switch (ret) { in complete_nread_ascii()
1107 char *ret = c->rcurr; in binary_get_request() local
1112 return ret; in binary_get_request()
1406 switch (ret) { in complete_update_bin()
5050 int ret = 0; in server_sockets() local
5101 return ret; in server_sockets()
5477 int ret = -1; in enable_large_pages() local
5500 ret = 0; in enable_large_pages()
[all …]
/memcached-1.4.29/scripts/
H A Dmemcached.upstart8 ret=0
13 start memcached-server || ret=$?
19 start memcached-server SERVER=$i || ret=$?
22 exit $ret
/memcached-1.4.29/t/
H A Dudp.t224 my $ret = {};
243 $ret->{$seq} = $res;
246 return $ret;