etcdctl: changed 'revision' to 'hash_revision' in hashkv table output

Signed-off-by: Benjamin Wang <wachao@vmware.com>
dependabot/go_modules/go.uber.org/atomic-1.10.0
Benjamin Wang 2022-11-25 18:59:49 +08:00
parent f2d765d247
commit 9a7f9609d6
2 changed files with 8 additions and 8 deletions

View File

@ -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 \<subcommand\>

View File

@ -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,