36 plan->
moves.reserve(length);
37 for (
size_t i=0; i<length; i++) {
40 plan->
moves.push_back(move_spec);
45 #define TABLE_IDENTIFIER_VERSION 2
49 HT_TRY(
"decoding table identitier version",
54 HT_TRY(
"decoding table identitier",
59 HT_TRY(
"decoding table identitier",
71 HT_TRY(
"decoding range spec",
99 #define RANGESTATE_VERSION 100
108 state->
state = version;
132 for (
size_t i=0; i<count; ++i) {
147 for (
size_t i = 0; i<count; ++i) {
char * decode_vstr(const uint8_t **bufp, size_t *remainp)
Decode a vstr (vint64, data, null).
TableIdentifierManaged table
#define RANGESTATE_VERSION
std::string source_location
uint64_t soft_limit
Soft split size limit.
FragmentReplayPlanContainer container
Container holding fragment replay plans.
const char * old_boundary_row
Original range boundary row.
const char * source
Source server where this range previously lived.
std::string dest_location
uint32_t decode_i32(const uint8_t **bufp, size_t *remainp)
Decode a 32-bit integer in little-endian order.
RangeServer recovery plan.
Range move specification.
Wrapper for TableIdentifier providing member storage.
ReplayPlan replay_plan
Replay plan.
uint64_t decode_i64(const uint8_t **bufp, size_t *remainp)
Decode a 64-bit integer in little-endian order.
bool decode_bool(const uint8_t **bufp, size_t *remainp)
Decodes a boolean value from the given buffer.
uint16_t decode_i16(const uint8_t **bufp, size_t *remainp)
Decode a 16-bit integer in little-endian order.
Logging routines and macros.
Compatibility Macros for C/C++.
const char * transfer_log
Full pathname of transfer log.
uint8_t state
Range state value (see StateType)
ServerReceiverPlanContainer container
Functions to serialize/deserialize primitives to/from a memory buffer.
#define TABLE_IDENTIFIER_VERSION
int64_t timestamp
Timestamp
void legacy_decode(const uint8_t **bufp, size_t *remainp, BalancePlan *plan)
std::vector< RangeMoveSpecPtr > moves
const char * split_point
Split point (row key)
Qualified (with table identifier) range specification.
std::shared_ptr< RangeMoveSpec > RangeMoveSpecPtr
ReceiverPlan receiver_plan
Receiver plan.
#define HT_TRY(_s_, _code_)
uint8_t decode_byte(const uint8_t **bufp, size_t *remainp)
Decodes a single byte from the given buffer.
Error codes, Exception handling, error logging.
Wrapper for RangeSpec providing member storage.
Holds a fragment replay plan for the recovery of a RangeServer.
Range state with memory management.
RangeServer recovery receiver plan.