MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vbucket.h
1 /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 #ifndef MEMCACHED_VBUCKET_H
3 #define MEMCACHED_VBUCKET_H 1
4 
5 #ifdef __cplusplus
6 extern "C"
7 {
8 #endif
9 
10 typedef enum {
11  vbucket_state_active = 1,
12  vbucket_state_replica,
13  vbucket_state_pending,
14  vbucket_state_dead
15 } vbucket_state_t;
16 
17 #define is_valid_vbucket_state_t(state) \
18  (state == vbucket_state_active || \
19  state == vbucket_state_replica || \
20  state == vbucket_state_pending || \
21  state == vbucket_state_dead)
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 #endif