Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 336 lines (281 sloc) 12.537 kb
f6d334e @bradfitz 2003-06-10
bradfitz authored
1 /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
1422dff @bradfitz fixup makefile, add Id lines
bradfitz authored
2 /* $Id$ */
c6975ef Part 1 of the Windows compatibility patch
Paul Lindner authored
3
56b8339 Merge multithreaded into trunk, commit #2 (first commit only did the
Steven Grimm authored
4 #include "config.h"
5 #include <sys/types.h>
b65aa2a fix for freebsd 6.x (and perhaps others)
Paul Lindner authored
6 #include <sys/socket.h>
56b8339 Merge multithreaded into trunk, commit #2 (first commit only did the
Steven Grimm authored
7 #include <sys/time.h>
8 #include <netinet/in.h>
9 #include <event.h>
10
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
11 #define DATA_BUFFER_SIZE 2048
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
12 #define UDP_READ_BUFFER_SIZE 65536
13 #define UDP_MAX_PAYLOAD_SIZE 1400
14 #define UDP_HEADER_SIZE 8
15 #define MAX_SENDBUF_SIZE (256 * 1024 * 1024)
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
16
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
17 /* Initial size of list of items being returned by "get". */
18 #define ITEM_LIST_INITIAL 200
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
19
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
20 /* Initial size of the sendmsg() scatter/gather array. */
21 #define IOV_LIST_INITIAL 400
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
22
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
23 /* Initial number of sendmsg() argument structures to allocate. */
24 #define MSG_LIST_INITIAL 10
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
25
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
26 /* High water marks for buffer shrinking */
27 #define READ_BUFFER_HIGHWAT 8192
28 #define ITEM_LIST_HIGHWAT 400
29 #define IOV_LIST_HIGHWAT 600
30 #define MSG_LIST_HIGHWAT 100
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
31
77dde9f multiple cleanups/refactoring, see ChangeLog
Paul Lindner authored
32 /* Get a consistent bool type */
33 #if HAVE_STDBOOL_H
34 # include <stdbool.h>
35 #else
10862f6 * Remove unused parameter to item_size_ok()
Paul Lindner authored
36 typedef enum {false = 0, true = 1} bool;
77dde9f multiple cleanups/refactoring, see ChangeLog
Paul Lindner authored
37 #endif
38
39 #if HAVE_STDINT_H
40 # include <stdint.h>
41 #else
42 typedef unsigned char uint8_t;
43 #endif
44
d9b97d8 cleanup unistd.h, better spec file, remove warnings from threads.c
Paul Lindner authored
45 /* unistd.h is here */
46 #if HAVE_UNISTD_H
47 # include <unistd.h>
48 #endif
49
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
50 /* Time relative to server start. Smaller than time_t on 64-bit systems. */
51 typedef unsigned int rel_time_t;
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
52
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
53 struct stats {
54 unsigned int curr_items;
55 unsigned int total_items;
c6975ef Part 1 of the Windows compatibility patch
Paul Lindner authored
56 uint64_t curr_bytes;
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
57 unsigned int curr_conns;
58 unsigned int total_conns;
59 unsigned int conn_structs;
c6975ef Part 1 of the Windows compatibility patch
Paul Lindner authored
60 uint64_t get_cmds;
61 uint64_t set_cmds;
62 uint64_t get_hits;
63 uint64_t get_misses;
64 uint64_t evictions;
6d74e13 @bradfitz -- remove the ages array since it's not needed. (you can just look
bradfitz authored
65 time_t started; /* when the process was started */
c6975ef Part 1 of the Windows compatibility patch
Paul Lindner authored
66 uint64_t bytes_read;
67 uint64_t bytes_written;
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
68 };
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
69
eca55c9 Add patch for changable verbosity levels
Paul Lindner authored
70 #define MAX_VERBOSITY_LEVEL 2
71
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
72 struct settings {
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
73 size_t maxbytes;
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
74 int maxconns;
75 int port;
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
76 int udpport;
c6975ef Part 1 of the Windows compatibility patch
Paul Lindner authored
77 struct in_addr interf;
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
78 int verbose;
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
79 rel_time_t oldest_live; /* ignore existing items older than this */
77dde9f multiple cleanups/refactoring, see ChangeLog
Paul Lindner authored
80 bool managed; /* if 1, a tracker manages virtual buckets */
841811e From: Jason Titus <jtitus@postini.com>
Jason Titus authored
81 int evict_to_free;
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
82 char *socketpath; /* path to unix socket if using local socket */
83 double factor; /* chunk size growth factor */
84 int chunk_size;
56b8339 Merge multithreaded into trunk, commit #2 (first commit only did the
Steven Grimm authored
85 int num_threads; /* number of libevent threads to run */
86 char prefix_delimiter; /* character that marks a key prefix (for stats) */
87 int detail_enabled; /* nonzero if we're collecting detailed stats */
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
88 };
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
89
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
90 extern struct stats stats;
91 extern struct settings settings;
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
92
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
93 #define ITEM_LINKED 1
94 #define ITEM_DELETED 2
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
95
54326f4 @bradfitz more debug
bradfitz authored
96 /* temp */
97 #define ITEM_SLABBED 4
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
98
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
99 typedef struct _stritem {
100 struct _stritem *next;
101 struct _stritem *prev;
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
102 struct _stritem *h_next; /* hash chain next */
103 rel_time_t time; /* least recent access */
104 rel_time_t exptime; /* expire time */
105 int nbytes; /* size of data */
1ea89bd @bradfitz remove all trailing whitespace, not just first occurrence. :)
bradfitz authored
106 unsigned short refcount;
77dde9f multiple cleanups/refactoring, see ChangeLog
Paul Lindner authored
107 uint8_t nsuffix; /* length of flags-and-length string */
108 uint8_t it_flags; /* ITEM_* above */
109 uint8_t slabs_clsid;/* which slab class we're in */
110 uint8_t nkey; /* key length, w/terminating null and padding */
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
111 void * end[0];
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
112 /* then null-terminated key */
113 /* then " flags length\r\n" (no terminating null) */
114 /* then data with terminating \r\n (no terminating null; it's binary!) */
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
115 } item;
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
116
f6d334e @bradfitz 2003-06-10
bradfitz authored
117 #define ITEM_key(item) ((char*)&((item)->end[0]))
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
118
f6d334e @bradfitz 2003-06-10
bradfitz authored
119 /* warning: don't use these macros with a function, as it evals its arg twice */
217dcce Incorporate changes from "performance" branch (revisions 414-419).
Steven Grimm authored
120 #define ITEM_suffix(item) ((char*) &((item)->end[0]) + (item)->nkey + 1)
121 #define ITEM_data(item) ((char*) &((item)->end[0]) + (item)->nkey + 1 + (item)->nsuffix)
122 #define ITEM_ntotal(item) (sizeof(struct _stritem) + (item)->nkey + 1 + (item)->nsuffix + (item)->nbytes)
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
123
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
124 enum conn_states {
125 conn_listening, /* the socket which listens for connections */
126 conn_read, /* reading in a command line */
127 conn_write, /* writing out a simple response */
128 conn_nread, /* reading in a fixed number of bytes */
129 conn_swallow, /* swallowing unnecessary bytes w/o storing */
130 conn_closing, /* closing this connection */
131 conn_mwrite /* writing out many items sequentially */
132 };
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
133
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
134 #define NREAD_ADD 1
135 #define NREAD_SET 2
136 #define NREAD_REPLACE 3
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
137
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
138 typedef struct {
139 int sfd;
140 int state;
141 struct event event;
142 short ev_flags;
7a30802 avva's bucket/generation patch
Anatoly Vorobey authored
143 short which; /* which events were just triggered */
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
144
7a30802 avva's bucket/generation patch
Anatoly Vorobey authored
145 char *rbuf; /* buffer to read commands into */
146 char *rcurr; /* but if we parsed some already, this is where we stopped */
147 int rsize; /* total allocated size of rbuf */
148 int rbytes; /* how much data, starting from rcur, do we have unparsed */
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
149
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
150 char *wbuf;
151 char *wcurr;
152 int wsize;
1ea89bd @bradfitz remove all trailing whitespace, not just first occurrence. :)
bradfitz authored
153 int wbytes;
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
154 int write_and_go; /* which state to go into after finishing current write */
155 void *write_and_free; /* free this memory after finishing writing */
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
156
7a30802 avva's bucket/generation patch
Anatoly Vorobey authored
157 char *ritem; /* when we read in an item's value, it goes here */
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
158 int rlbytes;
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
159
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
160 /* data for the nread state */
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
161
1ea89bd @bradfitz remove all trailing whitespace, not just first occurrence. :)
bradfitz authored
162 /*
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
163 * item is used to hold an item structure created after reading the command
1ea89bd @bradfitz remove all trailing whitespace, not just first occurrence. :)
bradfitz authored
164 * line of set/add/replace commands, but before we finished reading the actual
7917af4 @bradfitz misc fixes as suggested by avva. lot of comment updates, mostly.
bradfitz authored
165 * data. The data is read into ITEM_data(item) to avoid extra copying.
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
166 */
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
167
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
168 void *item; /* for commands set/add/replace */
169 int item_comm; /* which one is it: set/add/replace */
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
170
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
171 /* data for the swallow state */
172 int sbytes; /* how many bytes to swallow */
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
173
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
174 /* data for the mwrite state */
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
175 struct iovec *iov;
176 int iovsize; /* number of elements allocated in iov[] */
177 int iovused; /* number of elements used in iov[] */
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
178
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
179 struct msghdr *msglist;
180 int msgsize; /* number of elements allocated in msglist[] */
181 int msgused; /* number of elements used in msglist[] */
182 int msgcurr; /* element in msglist[] being transmitted now */
183 int msgbytes; /* number of bytes in current msg */
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
184
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
185 item **ilist; /* list of items to write out */
186 int isize;
187 item **icurr;
188 int ileft;
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
189
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
190 /* data for UDP clients */
77dde9f multiple cleanups/refactoring, see ChangeLog
Paul Lindner authored
191 bool udp; /* is this is a UDP "connection" */
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
192 int request_id; /* Incoming UDP request ID, if this is a UDP "connection" */
193 struct sockaddr request_addr; /* Who sent the most recent request */
194 socklen_t request_addr_size;
195 unsigned char *hdrbuf; /* udp packet headers */
196 int hdrsize; /* number of headers' worth of space is allocated */
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
197
1bb05fb @crucially r265@crucially-3: sky | 2006-03-29 17:02:15 +051800
crucially authored
198 int binary; /* are we in binary mode */
7a30802 avva's bucket/generation patch
Anatoly Vorobey authored
199 int bucket; /* bucket number for the next command, if running as
200 a managed instance. -1 (_not_ 0) means invalid. */
201 int gen; /* generation requested for the bucket */
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
202 } conn;
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
203
7a30802 avva's bucket/generation patch
Anatoly Vorobey authored
204 /* number of virtual buckets for a managed instance */
205 #define MAX_BUCKETS 32768
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
206
c9607c6 @bradfitz merge end of facebook branch into trunk, after copying the old trunk to ...
bradfitz authored
207 /* current time of day (updated periodically) */
208 extern volatile rel_time_t current_time;
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
209
8cb3381 @bradfitz more asserts
bradfitz authored
210 /* temporary hack */
18a72ad @bradfitz version 1.1.6
bradfitz authored
211 /* #define assert(x) if(!(x)) { printf("assert failure: %s\n", #x); pre_gdb(); }
212 void pre_gdb (); */
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
213
60d7094 update from avva with new allocation policy: bunches of power-of-two
Anatoly Vorobey authored
214 /*
215 * Functions
216 */
86969ea @bradfitz restore blank lines I over-zealously destroyed earlier.
bradfitz authored
217
56b8339 Merge multithreaded into trunk, commit #2 (first commit only did the
Steven Grimm authored
218 conn *do_conn_from_freelist();
219 int do_conn_add_to_freelist(conn *c);
220 char *do_defer_delete(item *item, time_t exptime);
221 void do_run_deferred_deletes(void);
222 char *do_add_delta(item *item, int incr, unsigned int delta, char *buf);
223 int do_store_item(item *item, int comm);
224 conn *conn_new(const int sfd, const int init_state, const int event_flags, const int read_buffer_size, const bool is_udp, struct event_base *base);
225
226
227 #include "stats.h"
77dde9f multiple cleanups/refactoring, see ChangeLog
Paul Lindner authored
228 #include "slabs.h"
229 #include "assoc.h"
230 #include "items.h"
56b8339 Merge multithreaded into trunk, commit #2 (first commit only did the
Steven Grimm authored
231
232
233 /*
234 * In multithreaded mode, we wrap certain functions with lock management and
235 * replace the logic of some other functions. All wrapped functions have
236 * "mt_" and "do_" variants. In multithreaded mode, the plain version of a
237 * function is #define-d to the "mt_" variant, which often just grabs a
238 * lock and calls the "do_" function. In singlethreaded mode, the "do_"
239 * function is called directly.
240 *
241 * Functions such as the libevent-related calls that need to do cross-thread
242 * communication in multithreaded mode (rather than actually doing the work
243 * in the current thread) are called via "dispatch_" frontends, which are
244 * also #define-d to directly call the underlying code in singlethreaded mode.
245 */
246 #ifdef USE_THREADS
247
248 void thread_init(int nthreads, struct event_base *main_base);
249 int dispatch_event_add(int thread, conn *c);
250 void dispatch_conn_new(int sfd, int init_state, int event_flags, int read_buffer_size, int is_udp);
251
252 /* Lock wrappers for cache functions that are called from main loop. */
253 char *mt_add_delta(item *item, int incr, unsigned int delta, char *buf);
d9b97d8 cleanup unistd.h, better spec file, remove warnings from threads.c
Paul Lindner authored
254 void mt_assoc_move_next_bucket(void);
56b8339 Merge multithreaded into trunk, commit #2 (first commit only did the
Steven Grimm authored
255 conn *mt_conn_from_freelist(void);
256 int mt_conn_add_to_freelist(conn *c);
257 char *mt_defer_delete(item *it, time_t exptime);
258 int mt_is_listen_thread(void);
259 item *mt_item_alloc(char *key, size_t nkey, int flags, rel_time_t exptime, int nbytes);
260 void mt_item_flush_expired(void);
eb75a0d first pass at pedantic ansi-c changes, use bools/consts.
Paul Lindner authored
261 item *mt_item_get_notedeleted(char *key, size_t nkey, bool *delete_locked);
56b8339 Merge multithreaded into trunk, commit #2 (first commit only did the
Steven Grimm authored
262 item *mt_item_get_nocheck(char *key, size_t nkey);
263 int mt_item_link(item *it);
264 void mt_item_remove(item *it);
265 int mt_item_replace(item *it, item *new_it);
266 void mt_item_unlink(item *it);
267 void mt_item_update(item *it);
268 void mt_run_deferred_deletes(void);
269 void *mt_slabs_alloc(size_t size);
270 void mt_slabs_free(void *ptr, size_t size);
271 int mt_slabs_reassign(unsigned char srcid, unsigned char dstid);
272 char *mt_slabs_stats(int *buflen);
273 void mt_stats_lock(void);
274 void mt_stats_unlock(void);
275 int mt_store_item(item *item, int comm);
276
277
278 # define add_delta(x,y,z,a) mt_add_delta(x,y,z,a)
279 # define assoc_move_next_bucket() mt_assoc_move_next_bucket()
280 # define conn_from_freelist() mt_conn_from_freelist()
281 # define conn_add_to_freelist(x) mt_conn_add_to_freelist(x)
282 # define defer_delete(x,y) mt_defer_delete(x,y)
283 # define is_listen_thread() mt_is_listen_thread()
284 # define item_alloc(x,y,z,a,b) mt_item_alloc(x,y,z,a,b)
285 # define item_flush_expired() mt_item_flush_expired()
286 # define item_get_nocheck(x,y) mt_item_get_nocheck(x,y)
287 # define item_get_notedeleted(x,y,z) mt_item_get_notedeleted(x,y,z)
288 # define item_link(x) mt_item_link(x)
289 # define item_remove(x) mt_item_remove(x)
290 # define item_replace(x,y) mt_item_replace(x,y)
291 # define item_update(x) mt_item_update(x)
292 # define item_unlink(x) mt_item_unlink(x)
293 # define run_deferred_deletes() mt_run_deferred_deletes()
294 # define slabs_alloc(x) mt_slabs_alloc(x)
295 # define slabs_free(x,y) mt_slabs_free(x,y)
296 # define slabs_reassign(x,y) mt_slabs_reassign(x,y)
297 # define slabs_stats(x) mt_slabs_stats(x)
298 # define store_item(x,y) mt_store_item(x,y)
299
300 # define STATS_LOCK() mt_stats_lock()
301 # define STATS_UNLOCK() mt_stats_unlock()
302
303 #else /* !USE_THREADS */
304
305 # define add_delta(x,y,z,a) do_add_delta(x,y,z,a)
306 # define assoc_move_next_bucket() do_assoc_move_next_bucket()
307 # define conn_from_freelist() do_conn_from_freelist()
308 # define conn_add_to_freelist(x) do_conn_add_to_freelist(x)
309 # define defer_delete(x,y) do_defer_delete(x,y)
310 # define dispatch_conn_new(x,y,z,a,b) conn_new(x,y,z,a,b,main_base)
311 # define dispatch_event_add(t,c) event_add(&(c)->event, 0)
312 # define is_listen_thread() 1
313 # define item_alloc(x,y,z,a,b) do_item_alloc(x,y,z,a,b)
314 # define item_flush_expired() do_item_flush_expired()
315 # define item_get_nocheck(x,y) do_item_get_nocheck(x,y)
316 # define item_get_notedeleted(x,y,z) do_item_get_notedeleted(x,y,z)
317 # define item_link(x) do_item_link(x)
318 # define item_remove(x) do_item_remove(x)
319 # define item_replace(x,y) do_item_replace(x,y)
320 # define item_unlink(x) do_item_unlink(x)
321 # define item_update(x) do_item_update(x)
322 # define run_deferred_deletes() do_run_deferred_deletes()
323 # define slabs_alloc(x) do_slabs_alloc(x)
324 # define slabs_free(x,y) do_slabs_free(x,y)
325 # define slabs_reassign(x,y) do_slabs_reassign(x,y)
326 # define slabs_stats(x) do_slabs_stats(x)
327 # define store_item(x,y) do_store_item(x,y)
328 # define thread_init(x,y) 0
329
330 # define STATS_LOCK() /**/
331 # define STATS_UNLOCK() /**/
332
333 #endif /* !USE_THREADS */
334
335
Something went wrong with that request. Please try again.