فهرست منبع

docs: v3 api, ErrCompaction -> ErrCompacted

Hongchao Deng 9 سال پیش
والد
کامیت
c11418b56c
3فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      Documentation/dev-guide/api_reference_v3.md
  2. 1 1
      etcdserver/etcdserverpb/rpc.pb.go
  3. 1 1
      etcdserver/etcdserverpb/rpc.proto

+ 1 - 1
Documentation/dev-guide/api_reference_v3.md

@@ -570,7 +570,7 @@ Empty field.
 | key | key is the first key for the range. If range_end is not given, the request only looks up key. | bytes |
 | range_end | range_end is the upper bound on the requested range [key, range_end). If range_end is '\0', the range is all keys >= key. If the range_end is one bit larger than the given key, then the range requests get the all keys with the prefix (the given key). If both key and range_end are '\0', then range requests returns all keys. | bytes |
 | limit | limit is a limit on the number of keys returned for the request. | int64 |
-| revision | revision is the point-in-time of the key-value store to use for the range. If revision is less or equal to zero, the range is over the newest key-value store. If the revision has been compacted, ErrCompaction is returned as a response. | int64 |
+| revision | revision is the point-in-time of the key-value store to use for the range. If revision is less or equal to zero, the range is over the newest key-value store. If the revision has been compacted, ErrCompacted is returned as a response. | int64 |
 | sort_order | sort_order is the order for returned sorted results. | SortOrder |
 | sort_target | sort_target is the key-value field to use for sorting. | SortTarget |
 | serializable | serializable sets the range request to use serializable member-local reads. Range requests are linearizable by default; linearizable requests have higher latency and lower throughput than serializable requests but reflect the current consensus of the cluster. For better performance, in exchange for possible stale reads, a serializable range request is served locally without needing to reach consensus with other nodes in the cluster. | bool |

+ 1 - 1
etcdserver/etcdserverpb/rpc.pb.go

@@ -209,7 +209,7 @@ type RangeRequest struct {
 	Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
 	// revision is the point-in-time of the key-value store to use for the range.
 	// If revision is less or equal to zero, the range is over the newest key-value store.
-	// If the revision has been compacted, ErrCompaction is returned as a response.
+	// If the revision has been compacted, ErrCompacted is returned as a response.
 	Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"`
 	// sort_order is the order for returned sorted results.
 	SortOrder RangeRequest_SortOrder `protobuf:"varint,5,opt,name=sort_order,json=sortOrder,proto3,enum=etcdserverpb.RangeRequest_SortOrder" json:"sort_order,omitempty"`

+ 1 - 1
etcdserver/etcdserverpb/rpc.proto

@@ -174,7 +174,7 @@ message RangeRequest {
   int64 limit = 3;
   // revision is the point-in-time of the key-value store to use for the range.
   // If revision is less or equal to zero, the range is over the newest key-value store.
-  // If the revision has been compacted, ErrCompaction is returned as a response.
+  // If the revision has been compacted, ErrCompacted is returned as a response.
   int64 revision = 4;
 
   // sort_order is the order for returned sorted results.