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
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. */
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)