From 9a7f9609d6cae6abd966ab171bbb0ae02b4c4df5 Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Fri, 25 Nov 2022 18:59:49 +0800 Subject: [PATCH] etcdctl: changed 'revision' to 'hash_revision' in hashkv table output Signed-off-by: Benjamin Wang --- etcdctl/README.md | 14 +++++++------- etcdctl/ctlv3/command/printer.go | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/etcdctl/README.md b/etcdctl/README.md index 754a6d4fb..39a5c56bc 100644 --- a/etcdctl/README.md +++ b/etcdctl/README.md @@ -897,13 +897,13 @@ Get the status for all endpoints in the cluster associated with the default endp ```bash $ ./etcdctl endpoint hash --cluster -w table -+------------------------+------------+----------+ -| ENDPOINT | HASH | REVISION | -+------------------------+------------+----------+ -| http://127.0.0.1:2379 | 2064120424 | 13 | -| http://127.0.0.1:22379 | 2064120424 | 13 | -| http://127.0.0.1:32379 | 2064120424 | 13 | -+------------------------+------------+----------+ ++------------------------+-----------+---------------+ +| ENDPOINT | HASH | HASH REVISION | ++------------------------+-----------+---------------+ +| http://127.0.0.1:2379 | 784522900 | 16 | +| http://127.0.0.1:22379 | 784522900 | 16 | +| http://127.0.0.1:32379 | 784522900 | 16 | ++------------------------+-----------+---------------+ ``` ### ALARM \ diff --git a/etcdctl/ctlv3/command/printer.go b/etcdctl/ctlv3/command/printer.go index 97aef54f8..7cc1b887b 100644 --- a/etcdctl/ctlv3/command/printer.go +++ b/etcdctl/ctlv3/command/printer.go @@ -233,7 +233,7 @@ func makeEndpointStatusTable(statusList []epStatus) (hdr []string, rows [][]stri } func makeEndpointHashKVTable(hashList []epHashKV) (hdr []string, rows [][]string) { - hdr = []string{"endpoint", "hash", "revision"} + hdr = []string{"endpoint", "hash", "hash_revision"} for _, h := range hashList { rows = append(rows, []string{ h.Ep,