45 transfer_log = split_point = old_boundary_row = source = 0;
55 str =
"SPLIT_LOG_INSTALLED";
61 str =
"RELINQUISH_LOG_INSTALLED";
64 str =
"RELINQUISH_COMPACTED";
67 str =
format(
"UNKNOWN(%d)", (
int)state);
155 out <<
" source='"<< st.
source <<
"'";
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.
char * decode_vstr(const uint8_t **bufp, size_t *remainp)
Decode a vstr (vint64, data, null).
void encode_internal(uint8_t **bufp) const override
Writes serialized representation of object to a buffer.
virtual void clear()
Clears state.
std::string String
A String is simply a typedef to std::string.
String format(const char *fmt,...)
Returns a String using printf like format facilities Vanilla snprintf is about 1.5x faster than this...
Po::typed_value< String > * str(String *v=0)
uint64_t soft_limit
Soft split size limit.
size_t encoded_length_vstr(size_t len)
Computes the encoded length of vstr (vint64, data, null)
const char * old_boundary_row
Original range boundary row.
const char * source
Source server where this range previously lived.
Relinquish - log installed.
uint8_t decode_i8(const uint8_t **bufp, size_t *remainp)
Decode a 8-bit integer (a byte/character)
uint64_t decode_i64(const uint8_t **bufp, size_t *remainp)
Decode a 64-bit integer in little-endian order.
uint8_t encoding_version() const override
Returns encoding version.
Declarations for RangeState.
Logging routines and macros.
Compatibility Macros for C/C++.
const char * transfer_log
Full pathname of transfer log.
std::ostream & operator<<(std::ostream &os, const crontab_entry &entry)
Helper function to write crontab_entry to an ostream.
uint8_t state
Range state value (see StateType)
void encode_i64(uint8_t **bufp, uint64_t val)
Encode a 64-bit integer in little-endian order.
Functions to serialize/deserialize primitives to/from a memory buffer.
size_t encoded_length_internal() const override
Returns internal serialized length.
int64_t timestamp
Timestamp
static std::string get_text(uint8_t state)
Returns string representation of range state value.
void encode_vstr(uint8_t **bufp, const void *buf, size_t len)
Encode a buffer as variable length string (vint64, data, null)
Relinquish - range compacted.
void clear() override
Clears state.
const char * split_point
Split point (row key)
void decode_internal(uint8_t version, const uint8_t **bufp, size_t *remainp) override
Reads serialized representation of object from a buffer.
void encode_i8(uint8_t **bufp, uint8_t val)
Encodes a byte into the given buffer.