Skip to content

Commit

Permalink
pd-ctl: update the usage of region key (#694)
Browse files Browse the repository at this point in the history
* update the usage of region key
  • Loading branch information
rleungx authored and disksing committed Oct 29, 2018
1 parent 567ff4f commit 65078f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,9 @@ Usage:
}
```
### `region key [--format=raw|pb|proto|protobuf] <key>`
### `region key [--format=raw|encode] <key>`
Use this command to query the region that a specific key resides in. It supports the raw and protobuf formats.
Use this command to query the region that a specific key resides in. It supports the raw and encoding formats. And you need to use single quotes around the key when it is in the encoding format.
Raw format usage (default):
Expand All @@ -434,10 +434,10 @@ Raw format usage (default):
}
```
Protobuf format usage:
Encoding format usage:
```bash
>> region key --format=pb t\200\000\000\000\000\000\000\377\035_r\200\000\000\000\000\377\017U\320\000\000\000\000\000\372
>> region key --format=encode 't\200\000\000\000\000\000\000\377\035_r\200\000\000\000\000\377\017U\320\000\000\000\000\000\372'
{
"region": {
"id": 2,
Expand Down

0 comments on commit 65078f9

Please sign in to comment.