8 #ifndef MEMCACHED_DEFAULT_ENGINE_H
9 #define MEMCACHED_DEFAULT_ENGINE_H
15 #include <memcached/engine.h>
16 #include <memcached/util.h>
17 #include <memcached/visibility.h>
20 #define POWER_SMALLEST 1
21 #define POWER_LARGEST 200
22 #define CHUNK_ALIGN_BYTES 8
23 #define DONT_PREALLOC_SLABS
24 #define MAX_NUMBER_OF_SLAB_CLASSES (POWER_LARGEST + 1)
28 #define TAIL_REPAIR_TIME (3 * 3600)
45 #define ITEM_WITH_CAS 1
47 #define ITEM_LINKED (1<<8)
50 #define ITEM_SLABBED (2<<8)
55 rel_time_t oldest_live;
68 GET_SERVER_API get_server_api,
93 VBUCKET_STATE_DEAD = 0,
94 VBUCKET_STATE_ACTIVE = 1,
95 VBUCKET_STATE_REPLICA = 2,
96 VBUCKET_STATE_PENDING = 3
103 #define NUM_VBUCKETS 65536
113 GET_SERVER_API get_server_api;
136 (
sizeof(
feature_info) * LAST_REGISTERED_ENGINE_FEATURE)];
139 char vbucket_infos[NUM_VBUCKETS];
142 char* item_get_data(
const hash_item* item);
143 const void* item_get_key(
const hash_item* item);
145 item* item, uint64_t val);
146 uint64_t item_get_cas(
const hash_item* item);
147 uint8_t item_get_clsid(
const hash_item* item);