mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: changed 'revision' to 'hash_revision' in hashkv table output
Signed-off-by: Benjamin Wang <wachao@vmware.com>
This commit is contained in:
parent
f2d765d247
commit
9a7f9609d6
@ -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\>
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user