45 size_t decode_remain =
m_event->payload_len;
46 const uint8_t *decode_ptr =
m_event->payload;
49 bool has_name =
decode_bool(&decode_ptr, &decode_remain);
55 handle =
decode_i64(&decode_ptr, &decode_remain);
56 const char *attr =
decode_vstr(&decode_ptr, &decode_remain);
62 cb.
error(e.
code(),
"Error handling ATTREXISTS message");
char * decode_vstr(const uint8_t **bufp, size_t *remainp)
Decode a vstr (vint64, data, null).
Master * m_master
Hyperspace master
Declarations for RequestHandlerAttrExists.
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.
Sends back result of an attr_exists request.
Logging routines and macros.
Compatibility Macros for C/C++.
uint64_t m_session_id
Session ID
void attr_exists(ResponseCallbackAttrExists *cb, uint64_t session_id, uint64_t handle, const char *name, const char *attr)
virtual int error(int error, const String &msg)
Sends a standard error response back to the client.
virtual void run()
Unmarshalls request parameters and calls Master::attr_exists().
This is a generic exception class for Hypertable.
EventPtr m_event
MESSAGE Event from which handler was initialized.
Declarations for ResponseCallback.
Error codes, Exception handling, error logging.
Comm * m_comm
Comm instance.
int code() const
Returns the error code.