MySQL  8.0.23
Source Code Documentation
default_engine.h File Reference
#include "config.h"
#include <pthread.h>
#include <stdbool.h>
#include <memcached/engine.h>
#include <memcached/util.h>
#include <memcached/visibility.h>
#include "trace.h"
#include "items.h"
#include "assoc.h"
#include "slabs.h"

Go to the source code of this file.

Classes

struct  config
 
struct  engine_stats
 Statistic information collected by the default engine. More...
 
struct  engine_scrubber
 
struct  tap_connections
 
struct  vbucket_info
 
struct  default_engine
 Definition of the private instance data used by the default engine. More...
 

Macros

#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 TAIL_REPAIR_TIME   (3 * 3600)
 How long an object can reasonably be assumed to be locked before harvesting it on a low memory condition. More...
 
#define ITEM_WITH_CAS   1
 
#define ITEM_LINKED   (1<<8)
 
#define ITEM_SLABBED   (2<<8)
 
#define NUM_VBUCKETS   65536
 

Functions

MEMCACHED_PUBLIC_API ENGINE_ERROR_CODE create_instance (uint64_t interface, GET_SERVER_API get_server_api, ENGINE_HANDLE **handle)
 
char * item_get_data (const hash_item *item)
 
const void * item_get_key (const hash_item *item)
 
void item_set_cas (ENGINE_HANDLE *handle, const void *cookie, item *item, uint64_t val)
 
uint64_t item_get_cas (const hash_item *item)
 
uint8_t item_get_clsid (const hash_item *item)
 

Macro Definition Documentation

◆ CHUNK_ALIGN_BYTES

#define CHUNK_ALIGN_BYTES   8

◆ DONT_PREALLOC_SLABS

#define DONT_PREALLOC_SLABS

◆ ITEM_LINKED

#define ITEM_LINKED   (1<<8)

◆ ITEM_SLABBED

#define ITEM_SLABBED   (2<<8)

◆ ITEM_WITH_CAS

#define ITEM_WITH_CAS   1

◆ MAX_NUMBER_OF_SLAB_CLASSES

#define MAX_NUMBER_OF_SLAB_CLASSES   (POWER_LARGEST + 1)

◆ NUM_VBUCKETS

#define NUM_VBUCKETS   65536

◆ POWER_LARGEST

#define POWER_LARGEST   200

◆ POWER_SMALLEST

#define POWER_SMALLEST   1

◆ TAIL_REPAIR_TIME

#define TAIL_REPAIR_TIME   (3 * 3600)

How long an object can reasonably be assumed to be locked before harvesting it on a low memory condition.

Function Documentation

◆ create_instance()

MEMCACHED_PUBLIC_API ENGINE_ERROR_CODE create_instance ( uint64_t  interface,
GET_SERVER_API  get_server_api,
ENGINE_HANDLE **  handle 
)

◆ item_get_cas()

uint64_t item_get_cas ( const hash_item item)

◆ item_get_clsid()

uint8_t item_get_clsid ( const hash_item item)

◆ item_get_data()

char* item_get_data ( const hash_item item)

◆ item_get_key()

const void* item_get_key ( const hash_item item)

◆ item_set_cas()

void item_set_cas ( ENGINE_HANDLE *  handle,
const void *  cookie,
item *  item,
uint64_t  val 
)