|
#define | KEY_MAX_LENGTH 250 |
| Maximum length of a key. More...
|
|
#define | INCR_MAX_STORAGE_LEN 24 |
| Size of an incr buf. More...
|
|
#define | DATA_BUFFER_SIZE 2048 |
|
#define | UDP_READ_BUFFER_SIZE 65536 |
|
#define | UDP_MAX_PAYLOAD_SIZE 1400 |
|
#define | UDP_HEADER_SIZE 8 |
|
#define | MAX_SENDBUF_SIZE (256 * 1024 * 1024) |
|
#define | SUFFIX_SIZE 24 |
|
#define | ITEM_LIST_INITIAL 200 |
| Initial size of list of items being returned by "get". More...
|
|
#define | SUFFIX_LIST_INITIAL 20 |
| Initial size of list of CAS suffixes appended to "gets" lines. More...
|
|
#define | IOV_LIST_INITIAL 400 |
| Initial size of the sendmsg() scatter/gather array. More...
|
|
#define | MSG_LIST_INITIAL 10 |
| Initial number of sendmsg() argument structures to allocate. More...
|
|
#define | READ_BUFFER_HIGHWAT 8192 |
| High water marks for buffer shrinking. More...
|
|
#define | ITEM_LIST_HIGHWAT 400 |
|
#define | IOV_LIST_HIGHWAT 600 |
|
#define | MSG_LIST_HIGHWAT 100 |
|
#define | MIN_BIN_PKT_LENGTH 16 |
|
#define | BIN_PKT_HDR_WORDS (MIN_BIN_PKT_LENGTH/sizeof(uint32_t)) |
|
#define | POWER_SMALLEST 1 |
|
#define | POWER_LARGEST 200 |
|
#define | CHUNK_ALIGN_BYTES 8 |
|
#define | DONT_PREALLOC_SLABS |
|
#define | MAX_NUMBER_OF_SLAB_CLASSES (POWER_LARGEST + 1) |
|
#define | STAT_KEY_LEN 128 |
|
#define | STAT_VAL_LEN 128 |
|
#define | DEFAULT_REQS_PER_EVENT 20 |
|
#define | DEFAULT_REQS_PER_TAP_EVENT 50 |
|
#define | APPEND_STAT(name, fmt, val) append_stat(name, add_stats, c, fmt, val); |
| Append a simple stat with a stat name, value format and value. More...
|
|
#define | APPEND_NUM_FMT_STAT(name_fmt, num, name, fmt, val) |
| Append an indexed stat with a stat name (with format), value format and value. More...
|
|
#define | APPEND_NUM_STAT(num, name, fmt, val) APPEND_NUM_FMT_STAT("%d:%s", num, name, fmt, val) |
| Common APPEND_NUM_FMT_STAT format. More...
|
|
#define | IS_UDP(x) (x == udp_transport) |
|
#define | MAX_VERBOSITY_LEVEL 2 |
|
#define | LOCK_THREAD(t) |
|
#define | UNLOCK_THREAD(t) |
|
#define | LIST_STATE_PROCESSING 1 |
|
#define | LIST_STATE_REQ_PENDING_IO 2 |
|
#define | LIST_STATE_REQ_PENDING_CLOSE 4 |
|
#define | drop_privileges() |
|
#define | __builtin_expect(x, expected_value) (x) |
|
#define | likely(x) __builtin_expect((x),1) |
|
#define | unlikely(x) __builtin_expect((x),0) |
|
|
void | notify_thread (LIBEVENT_THREAD *thread) |
|
void | notify_dispatcher (void) |
|
bool | create_notification_pipe (LIBEVENT_THREAD *me) |
|
conn * | conn_new (const SOCKET sfd, STATE_FUNC init_state, const int event_flags, const int read_buffer_size, enum network_transport transport, struct event_base *base, struct timeval *timeout) |
|
int | daemonize (int nochdir, int noclose) |
|
bool | register_event (conn *c, struct timeval *timeout) |
|
bool | unregister_event (conn *c) |
|
bool | update_event (conn *c, const int new_flags) |
|
void | thread_init (int nthreads, struct event_base *main_base, void(*dispatcher_callback)(int, short, void *)) |
|
void | threads_shutdown (void) |
|
int | dispatch_event_add (int thread, conn *c) |
|
void | dispatch_conn_new (SOCKET sfd, STATE_FUNC init_state, int event_flags, int read_buffer_size, enum network_transport transport) |
|
void | accept_new_conns (const bool do_accept) |
|
conn * | conn_from_freelist (void) |
|
bool | conn_add_to_freelist (conn *c) |
|
int | is_listen_thread (void) |
|
void | STATS_LOCK (void) |
|
void | STATS_UNLOCK (void) |
|
void | threadlocal_stats_clear (struct thread_stats *stats) |
|
void | threadlocal_stats_reset (struct thread_stats *thread_stats) |
|
void | threadlocal_stats_aggregate (struct thread_stats *thread_stats, struct thread_stats *stats) |
|
void | slab_stats_aggregate (struct thread_stats *stats, struct slab_stats *out) |
|
void | append_stat (const char *name, ADD_STAT add_stats, conn *c, const char *fmt,...) |
|
void | notify_io_complete (const void *cookie, ENGINE_ERROR_CODE status) |
|
void | conn_set_state (conn *c, STATE_FUNC state) |
|
const char * | state_text (STATE_FUNC state) |
| Convert a state name to a human readable form. More...
|
|
void | safe_close (SOCKET sfd) |
|
int | number_of_pending (conn *c, conn *pending) |
|
bool | has_cycle (conn *c) |
|
bool | list_contains (conn *h, conn *n) |
|
conn * | list_remove (conn *h, conn *n) |
|
size_t | list_to_array (conn **dest, size_t max_items, conn **l) |
|
void | enlist_conn (conn *c, conn **list) |
|
void | finalize_list (conn **list, size_t items) |
|
bool | set_socket_nonblocking (SOCKET sfd) |
|
void | conn_close (conn *c) |
|
bool | conn_listening (conn *c) |
|
bool | conn_new_cmd (conn *c) |
|
bool | conn_waiting (conn *c) |
|
bool | conn_read (conn *c) |
|
bool | conn_parse_cmd (conn *c) |
|
bool | conn_write (conn *c) |
|
bool | conn_nread (conn *c) |
|
bool | conn_swallow (conn *c) |
|
bool | conn_pending_close (conn *c) |
|
bool | conn_immediate_close (conn *c) |
|
bool | conn_closing (conn *c) |
|
bool | conn_mwrite (conn *c) |
|
bool | conn_ship_log (conn *c) |
| Ship tap log to the other end. More...
|
|
bool | conn_add_tap_client (conn *c) |
|
bool | conn_setup_tap_stream (conn *c) |
|
The main memcached header holding commonly used data structures and function prototypes.