Skip to content

Commit 3c83cd9

Browse files
authored
Merge pull request #19468 from k8s-infra-cherrypick-robot/cherry-pick-19446-to-release-3.6
[release-3.6] etcdserver: Update description for count field in the RangeResponse message
2 parents 935f0c0 + ec0aa63 commit 3c83cd9

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Documentation/dev-guide/apispec/swagger/rpc.swagger.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2702,7 +2702,7 @@
27022702
"count": {
27032703
"type": "string",
27042704
"format": "int64",
2705-
"description": "count is set to the number of keys within the range when requested."
2705+
"description": "count is set to the actual number of keys within the range when requested.\nUnlike Kvs, it is unaffected by limits and filters (e.g., Min/Max, Create/Modify, Revisions)\nand reflects the full count within the specified range."
27062706
}
27072707
}
27082708
},

api/etcdserverpb/rpc.pb.go

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/etcdserverpb/rpc.proto

+3-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,9 @@ message RangeResponse {
507507
repeated mvccpb.KeyValue kvs = 2;
508508
// more indicates if there are more keys to return in the requested range.
509509
bool more = 3;
510-
// count is set to the number of keys within the range when requested.
510+
// count is set to the actual number of keys within the range when requested.
511+
// Unlike Kvs, it is unaffected by limits and filters (e.g., Min/Max, Create/Modify, Revisions)
512+
// and reflects the full count within the specified range.
511513
int64 count = 4;
512514
}
513515

0 commit comments

Comments
 (0)