Skip to content

Commit

Permalink
tools: update region keys default limit hint
Browse files Browse the repository at this point in the history
Signed-off-by: IcePigZDB <icepigzdb@gmail.com>
  • Loading branch information
IcePigZDB authored and ti-chi-bot committed May 13, 2022
1 parent 9ea82ad commit 30e7a5c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ Usage:
### `region keys [--format=raw|encode|hex] <start_key> <end_key> <limit>`
Use this command to query all Regions in a given range `[startkey, endkey)`. Ranges without `endKey`s are supported. With an `endKey`, the default value of `limit` is `16`. Without an `endKey`, the default value of `limit` is `-1`, which means no limit.
Use this command to query all Regions in a given range `[startkey, endkey)`. Ranges without `endKey`s are supported. The default value of `limit` is `16`, set to `-1` for unlimited.
Usage:
Expand All @@ -612,19 +612,19 @@ Usage:
"regions": [......],
}
>> region keys --format=raw a "" 20 // Display all Regions that start from the key a with a limit count of 20
>> region keys --format=raw a z // Display all Regions in the range [a, z) with a default limit count of 16
{
"count": 20,
"count": 16,
"regions": [......],
}
>> region keys --format=raw a z // Display all Regions in the range [a, z) without a limit count
>> region keys --format=raw a z -1 // Display all Regions in the range [a, z) without a limit count
{
"count": 16,
"count": ...,
"regions": [......],
}
>> region keys --format=raw a z 20 // Display all Regions in the range [a, z) with a limit count of 20
>> region keys --format=raw a "" 20 // Display all Regions that start from the key a with a limit count of 20
{
"count": 20,
"regions": [......],
Expand Down

0 comments on commit 30e7a5c

Please sign in to comment.