-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
etcdserver: fill-in Auth API Header in apply layer #7753
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks OK aside from the missing header fields
etcdserver/apply.go
Outdated
@@ -815,3 +842,7 @@ func pruneKVs(rr *mvcc.RangeResult, isPrunable func(*mvccpb.KeyValue) bool) { | |||
} | |||
rr.KVs = rr.KVs[:j] | |||
} | |||
|
|||
func newHeader(s *EtcdServer) *pb.ResponseHeader { | |||
return &pb.ResponseHeader{Revision: s.KV().Rev()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this fill out all the fields, though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, let's fill them out as well.
1c9b324
to
ce31f40
Compare
Replacing "etcdserver: fill a response header in auth RPCs" The revision should be set at the time of "apply", not in later RPC layer. Fix etcd-io#7691 Signed-off-by: Gyu-Ho Lee <[email protected]>
Signed-off-by: Gyu-Ho Lee <[email protected]>
@gyuho thanks and sorry for my late work, yesterday I couldn't allocate a time for the previous versioin of PR... |
Codecov Report
@@ Coverage Diff @@
## master #7753 +/- ##
=========================================
Coverage ? 75.75%
=========================================
Files ? 331
Lines ? 26050
Branches ? 0
=========================================
Hits ? 19733
Misses ? 4893
Partials ? 1424
Continue to review full report at Codecov.
|
Replace #7716 (5e0f9eb).
Fix #7691.