From 65078f98471a18dca298286e633bae17031539bc Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Mon, 29 Oct 2018 13:38:54 +0800 Subject: [PATCH] pd-ctl: update the usage of region key (#694) * update the usage of region key --- tools/pd-control.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/pd-control.md b/tools/pd-control.md index 402d3ad572df4..5efd270568176 100644 --- a/tools/pd-control.md +++ b/tools/pd-control.md @@ -418,9 +418,9 @@ Usage: } ``` -### `region key [--format=raw|pb|proto|protobuf] ` +### `region key [--format=raw|encode] ` -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): @@ -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,