Make Response::index() 64 bit
This commit is contained in:
parent
d29e05545d
commit
ae45152a1a
|
|
@ -98,7 +98,7 @@ namespace etcd
|
|||
/**
|
||||
* Returns the current index value of etcd
|
||||
*/
|
||||
int index() const;
|
||||
int64_t index() const;
|
||||
|
||||
/**
|
||||
* Returns the value object of the response to a get/set/modify operation.
|
||||
|
|
@ -162,7 +162,7 @@ namespace etcd
|
|||
|
||||
int _error_code;
|
||||
std::string _error_message;
|
||||
int _index;
|
||||
int64_t _index;
|
||||
std::string _action;
|
||||
Value _value;
|
||||
Value _prev_value;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace etcdv3
|
|||
std::string const & get_error_message() const;
|
||||
void set_error_message(std::string msg);
|
||||
void set_action(std::string action);
|
||||
int get_index() const;
|
||||
int64_t get_index() const;
|
||||
std::string const & get_action() const;
|
||||
std::vector<etcdv3::KeyValue> const & get_values() const;
|
||||
std::vector<etcdv3::KeyValue> const & get_prev_values() const;
|
||||
|
|
@ -33,7 +33,7 @@ namespace etcdv3
|
|||
std::vector<mvccpb::Event> const & get_events() const;
|
||||
protected:
|
||||
int error_code;
|
||||
int index;
|
||||
int64_t index;
|
||||
std::string error_message;
|
||||
std::string action;
|
||||
etcdv3::KeyValue value;
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ std::string const & etcd::Response::error_message() const
|
|||
return _error_message;
|
||||
}
|
||||
|
||||
int etcd::Response::index() const
|
||||
int64_t etcd::Response::index() const
|
||||
{
|
||||
return _index;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ void etcdv3::V3Response::set_error_message(std::string msg)
|
|||
error_message = msg;
|
||||
}
|
||||
|
||||
int etcdv3::V3Response::get_index() const
|
||||
int64_t etcdv3::V3Response::get_index() const
|
||||
{
|
||||
return index;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue