mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
update dump db tool
Signed-off-by: Liang Zheng <zhengliang0901@gmail.com>
This commit is contained in:
parent
69279532f4
commit
0cc789d81d
@ -236,7 +236,7 @@ func TimeToLiveHTTP(ctx context.Context, id lease.LeaseID, keys bool, url string
|
||||
return nil, fmt.Errorf(`lease: %v. data = "%s"`, err, string(b))
|
||||
}
|
||||
if lresp.LeaseTimeToLiveResponse.ID != int64(id) {
|
||||
return nil, fmt.Errorf("lease: renew id mismatch")
|
||||
return nil, fmt.Errorf("lease: TTL id mismatch")
|
||||
}
|
||||
return lresp, nil
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ func leaseDecoder(k, v []byte) {
|
||||
if err := lpb.Unmarshal(v); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("lease ID=%016x, TTL=%ds\n", leaseID, lpb.TTL)
|
||||
fmt.Printf("lease ID=%016x, TTL=%ds, remaining TTL=%ds\n", leaseID, lpb.TTL, lpb.RemainingTTL)
|
||||
}
|
||||
|
||||
func authDecoder(k, v []byte) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user