Skip to content

Commit

Permalink
Merge pull request #19446 from ashikjm/18267-issue
Browse files Browse the repository at this point in the history
etcdserver: Update description for count field in the RangeResponse message
  • Loading branch information
ahrtr authored Feb 23, 2025
2 parents d52bd90 + 97c63c9 commit 022b9b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Documentation/dev-guide/apispec/swagger/rpc.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2702,7 +2702,7 @@
"count": {
"type": "string",
"format": "int64",
"description": "count is set to the number of keys within the range when requested."
"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."
}
}
},
Expand Down
4 changes: 3 additions & 1 deletion api/etcdserverpb/rpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion api/etcdserverpb/rpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,9 @@ message RangeResponse {
repeated mvccpb.KeyValue kvs = 2;
// more indicates if there are more keys to return in the requested range.
bool more = 3;
// count is set to the number of keys within the range when requested.
// count is set to the actual number of keys within the range when requested.
// Unlike Kvs, it is unaffected by limits and filters (e.g., Min/Max, Create/Modify, Revisions)
// and reflects the full count within the specified range.
int64 count = 4;
}

Expand Down

0 comments on commit 022b9b2

Please sign in to comment.