Make Response::index() 64 bit

This commit is contained in:
Matthew Fioravante 2021-10-26 21:58:24 -04:00
parent d29e05545d
commit ae45152a1a
4 changed files with 6 additions and 6 deletions

View File

@ -98,7 +98,7 @@ namespace etcd
/** /**
* Returns the current index value of 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. * Returns the value object of the response to a get/set/modify operation.
@ -162,7 +162,7 @@ namespace etcd
int _error_code; int _error_code;
std::string _error_message; std::string _error_message;
int _index; int64_t _index;
std::string _action; std::string _action;
Value _value; Value _value;
Value _prev_value; Value _prev_value;

View File

@ -18,7 +18,7 @@ namespace etcdv3
std::string const & get_error_message() const; std::string const & get_error_message() const;
void set_error_message(std::string msg); void set_error_message(std::string msg);
void set_action(std::string action); void set_action(std::string action);
int get_index() const; int64_t get_index() const;
std::string const & get_action() const; std::string const & get_action() const;
std::vector<etcdv3::KeyValue> const & get_values() const; std::vector<etcdv3::KeyValue> const & get_values() const;
std::vector<etcdv3::KeyValue> const & get_prev_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; std::vector<mvccpb::Event> const & get_events() const;
protected: protected:
int error_code; int error_code;
int index; int64_t index;
std::string error_message; std::string error_message;
std::string action; std::string action;
etcdv3::KeyValue value; etcdv3::KeyValue value;

View File

@ -60,7 +60,7 @@ std::string const & etcd::Response::error_message() const
return _error_message; return _error_message;
} }
int etcd::Response::index() const int64_t etcd::Response::index() const
{ {
return _index; return _index;
} }

View File

@ -11,7 +11,7 @@ void etcdv3::V3Response::set_error_message(std::string msg)
error_message = msg; error_message = msg;
} }
int etcdv3::V3Response::get_index() const int64_t etcdv3::V3Response::get_index() const
{ {
return index; return index;
} }