Fixes the compilation errors.
Signed-off-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
parent
2502f84535
commit
bd4c1479b4
|
|
@ -31,7 +31,8 @@ public:
|
|||
Transaction(std::string const&);
|
||||
virtual ~Transaction();
|
||||
|
||||
void set_key(std::string const& comp_key);
|
||||
// Set a new key for different comparisons and /put/get/delete requests.
|
||||
void reset_key(std::string const& newkey);
|
||||
|
||||
void init_compare(CompareResult, CompareTarget);
|
||||
void init_compare(std::string const &old_value, CompareResult, CompareTarget);
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@ etcdv3::Transaction::Transaction(const std::string& key) : key(key) {
|
|||
txn_request.reset(new etcdserverpb::TxnRequest{});
|
||||
}
|
||||
|
||||
void etcdv3::set_key(std::string const& comp_key) {
|
||||
key = comp_key;
|
||||
void etcdv3::Transaction::reset_key(std::string const& newkey) {
|
||||
key = newkey;
|
||||
}
|
||||
|
||||
void etcdv3::Transaction::init_compare(CompareResult result, CompareTarget target){
|
||||
|
|
|
|||
Loading…
Reference in New Issue