Skip to content

Commit

Permalink
update the usage of region key (#957) (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
disksing authored Nov 26, 2018
1 parent 8493ba7 commit 0213048
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 @@ -291,9 +291,9 @@ time: 43.12698ms
}
```

### region key [--format=raw|pb|proto|protobuf] \<key\>
### region key [--format=raw|encode] <key>

用于查询某个 key 在哪个 region 上,支持 raw 和 protobuf 格式。
用于查询某个 key 在哪个 Region 上,支持 raw 和 encoding 格式。使用 encoding 格式时,key 需要使用单引号

Raw 格式(默认)示例:

Expand All @@ -307,10 +307,10 @@ Raw 格式(默认)示例:
}
```

Protobuf 格式示例:
Encoding 格式示例:

```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 0213048

Please sign in to comment.