Merge in additional test for increment with namespace key.
[awesomized/libmemcached] / libmemcached / memcached / 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, /**< Actively servicing a vbucket. */
12 vbucket_state_replica, /**< Servicing a vbucket as a replica only. */
13 vbucket_state_pending, /**< Pending active. */
14 vbucket_state_dead /**< Not in use, pending deletion. */
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