Browse Source

*: 'ignore_value' to detach lease with PutRequest

Gyu-Ho Lee 9 years ago
parent
commit
8eea93942d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      etcdserver/etcdserverpb/rpc.proto

+ 4 - 0
etcdserver/etcdserverpb/rpc.proto

@@ -423,6 +423,10 @@ message PutRequest {
   // If prev_kv is set, etcd gets the previous key-value pair before changing it.
   // If prev_kv is set, etcd gets the previous key-value pair before changing it.
   // The previous key-value pair will be returned in the put response.
   // The previous key-value pair will be returned in the put response.
   bool prev_kv = 4;
   bool prev_kv = 4;
+
+  // If ignore_value is set, etcd updates the key using its current value.
+  // Returns an error if the key does not exist.
+  bool ignore_value = 5;
 }
 }
 
 
 message PutResponse {
 message PutResponse {