make compact_revision 64 bit

This commit is contained in:
Matthew Fioravante 2021-10-26 22:13:41 -04:00
parent ae45152a1a
commit 9a481bf40a
4 changed files with 6 additions and 6 deletions

View File

@ -134,7 +134,7 @@ namespace etcd
* Returns the compact_revision if the response is a watch-cancelled revision.
* `-1` means uninitialized (the response is not watch-cancelled)
*/
int compact_revision() const;
int64_t compact_revision() const;
/**
* Returns the lock key.
@ -168,7 +168,7 @@ namespace etcd
Value _prev_value;
Values _values;
Keys _keys;
int _compact_revision = -1; // for watch
int64_t _compact_revision = -1; // for watch
std::string _lock_key; // for lock
std::string _name; // for campaign (in v3election)
std::vector<Event> _events; // for watch

View File

@ -25,7 +25,7 @@ namespace etcdv3
etcdv3::KeyValue const & get_value() const;
etcdv3::KeyValue const & get_prev_value() const;
bool has_values() const;
int get_compact_revision() const;
int64_t get_compact_revision() const;
void set_lock_key(std::string const &key);
std::string const &get_lock_key() const;
void set_name(std::string const &name);
@ -40,7 +40,7 @@ namespace etcdv3
etcdv3::KeyValue prev_value;
std::vector<etcdv3::KeyValue> values;
std::vector<etcdv3::KeyValue> prev_values;
int compact_revision = -1;
int64_t compact_revision = -1;
std::string lock_key; // for lock
std::string name; // for campaign (in v3election)
std::vector<mvccpb::Event> events; // for watch

View File

@ -110,7 +110,7 @@ std::string const & etcd::Response::key(int index) const
return _keys[index];
}
int etcd::Response::compact_revision() const
int64_t etcd::Response::compact_revision() const
{
return _compact_revision;
}

View File

@ -61,7 +61,7 @@ bool etcdv3::V3Response::has_values() const
return values.size() > 0;
}
int etcdv3::V3Response::get_compact_revision() const
int64_t etcdv3::V3Response::get_compact_revision() const
{
return compact_revision;
}