From c11418b56c8339afe8f768f2690bf4182cd68c30 Mon Sep 17 00:00:00 2001 From: Hongchao Deng Date: Fri, 10 Jun 2016 21:44:01 -0700 Subject: [PATCH] docs: v3 api, ErrCompaction -> ErrCompacted --- Documentation/dev-guide/api_reference_v3.md | 2 +- etcdserver/etcdserverpb/rpc.pb.go | 2 +- etcdserver/etcdserverpb/rpc.proto | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/dev-guide/api_reference_v3.md b/Documentation/dev-guide/api_reference_v3.md index f008bfb46..bd6c3397d 100644 --- a/Documentation/dev-guide/api_reference_v3.md +++ b/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 | diff --git a/etcdserver/etcdserverpb/rpc.pb.go b/etcdserver/etcdserverpb/rpc.pb.go index cc84c89f1..83a866710 100644 --- a/etcdserver/etcdserverpb/rpc.pb.go +++ b/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"` diff --git a/etcdserver/etcdserverpb/rpc.proto b/etcdserver/etcdserverpb/rpc.proto index 361228510..4bea5ab56 100644 --- a/etcdserver/etcdserverpb/rpc.proto +++ b/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.