static void debug_tap_vbucket_set_request(protocol_binary_request_header *req) { protocol_binary_request_tap_vbucket_set *t = (void*)req; debug_tap_common_body((void*)req); int nextbyte = sizeof(protocol_binary_request_tap_no_extras); printf("VB State (%02d-%02d): ", nextbyte, nextbyte + (int)sizeof(uint32_t) - 1); uint32_t state; memcpy(&state, t + 1, sizeof(state)); print_uint32(state, false, false); printf(" (%s)\n", get_vbucket_state(state)); nextbyte += sizeof(state); }
static bool handled_vbucket(struct default_engine *e, uint16_t vbid) { return e->config.ignore_vbucket || (get_vbucket_state(e, vbid) == vbucket_state_active); }
static bool handled_vbucket(struct default_engine *e, uint16_t vbid) { return e->config.ignore_vbucket || (get_vbucket_state(e, vbid) == VBUCKET_STATE_ACTIVE); }