From ae45152a1af0cab82b3594be7429b25e5f596566 Mon Sep 17 00:00:00 2001 From: Matthew Fioravante Date: Tue, 26 Oct 2021 21:58:24 -0400 Subject: [PATCH] Make Response::index() 64 bit --- etcd/Response.hpp | 4 ++-- etcd/v3/V3Response.hpp | 4 ++-- src/Response.cpp | 2 +- src/v3/V3Response.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/etcd/Response.hpp b/etcd/Response.hpp index ad73262..9627bd0 100644 --- a/etcd/Response.hpp +++ b/etcd/Response.hpp @@ -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; diff --git a/etcd/v3/V3Response.hpp b/etcd/v3/V3Response.hpp index b722922..5a2bf45 100644 --- a/etcd/v3/V3Response.hpp +++ b/etcd/v3/V3Response.hpp @@ -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 const & get_values() const; std::vector const & get_prev_values() const; @@ -33,7 +33,7 @@ namespace etcdv3 std::vector const & get_events() const; protected: int error_code; - int index; + int64_t index; std::string error_message; std::string action; etcdv3::KeyValue value; diff --git a/src/Response.cpp b/src/Response.cpp index 8b6a996..353b31e 100644 --- a/src/Response.cpp +++ b/src/Response.cpp @@ -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; } diff --git a/src/v3/V3Response.cpp b/src/v3/V3Response.cpp index 8db5a39..49378ab 100644 --- a/src/v3/V3Response.cpp +++ b/src/v3/V3Response.cpp @@ -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; }