Browse Source

etcdserverpb: add missing deleterange annotation

Xiang Li 9 years ago
parent
commit
b4ce427d45
1 changed files with 6 additions and 1 deletions
  1. 6 1
      etcdserver/etcdserverpb/rpc.proto

+ 6 - 1
etcdserver/etcdserverpb/rpc.proto

@@ -33,7 +33,12 @@ service KV {
   // DeleteRange deletes the given range from the key-value store.
   // DeleteRange deletes the given range from the key-value store.
   // A delete request increments the revision of the key-value store
   // A delete request increments the revision of the key-value store
   // and generates a delete event in the event history for every deleted key.
   // and generates a delete event in the event history for every deleted key.
-  rpc DeleteRange(DeleteRangeRequest) returns (DeleteRangeResponse) {}
+  rpc DeleteRange(DeleteRangeRequest) returns (DeleteRangeResponse) {
+      option (google.api.http) = {
+        post: "/v3alpha/kv/deleterange"
+        body: "*"
+    };
+  }
 
 
   // Txn processes multiple requests in a single transaction.
   // Txn processes multiple requests in a single transaction.
   // A txn request increments the revision of the key-value store
   // A txn request increments the revision of the key-value store