Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pd-ctl: update the usage of region key #694

Merged
merged 2 commits into from
Oct 29, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 it needs to use single quotes around the key when it is in the encoding format.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it needs to use -> you need to use


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