mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix(dispatch) should call e.Index()
This commit is contained in:
parent
a5bca025b1
commit
36dda352d9
@ -269,7 +269,7 @@ func (s *Server) Dispatch(c raft.Command, w http.ResponseWriter, req *http.Reque
|
|||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
// etcd index should be the same as the event index
|
// etcd index should be the same as the event index
|
||||||
// which is also the last modified index of the node
|
// which is also the last modified index of the node
|
||||||
w.Header().Add("X-Etcd-Index", fmt.Sprint(e.Index))
|
w.Header().Add("X-Etcd-Index", fmt.Sprint(e.Index()))
|
||||||
w.Header().Add("X-Raft-Index", fmt.Sprint(s.CommitIndex()))
|
w.Header().Add("X-Raft-Index", fmt.Sprint(s.CommitIndex()))
|
||||||
w.Header().Add("X-Raft-Term", fmt.Sprint(s.Term()))
|
w.Header().Add("X-Raft-Term", fmt.Sprint(s.Term()))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user