Make Value created and modified index 64 bit

This commit is contained in:
Matthew Fioravante 2021-10-26 22:25:44 -04:00
parent c144b46ef6
commit c8ced5b1c4
2 changed files with 6 additions and 6 deletions

View File

@ -48,12 +48,12 @@ namespace etcd
/** /**
* Returns the creation index of this value. * Returns the creation index of this value.
*/ */
int created_index() const; int64_t created_index() const;
/** /**
* Returns the last modification's index of this value. * Returns the last modification's index of this value.
*/ */
int modified_index() const; int64_t modified_index() const;
/** /**
* Returns the ttl of this value or 0 if ttl is not set * Returns the ttl of this value or 0 if ttl is not set
@ -76,8 +76,8 @@ namespace etcd
std::string _key; std::string _key;
bool dir; bool dir;
std::string value; std::string value;
int created; int64_t created;
int modified; int64_t modified;
int _ttl; int _ttl;
int64_t leaseId; int64_t leaseId;
}; };

View File

@ -50,12 +50,12 @@ std::string const & etcd::Value::as_string() const
return value; return value;
} }
int etcd::Value::created_index() const int64_t etcd::Value::created_index() const
{ {
return created; return created;
} }
int etcd::Value::modified_index() const int64_t etcd::Value::modified_index() const
{ {
return modified; return modified;
} }