~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to plugin/innodb_memcached/daemon_memcached/include/memcached/vbucket.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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