etcdserver: following updates for proto change

release-3.0
Gyu-Ho Lee 2016-06-07 13:32:07 -07:00
parent ca630a0803
commit 6e149e3485
6 changed files with 398 additions and 397 deletions

View File

@ -156,7 +156,7 @@ func checkTxnRequest(r *pb.TxnRequest) error {
} }
for _, u := range r.Success { for _, u := range r.Success {
if err := checkRequestUnion(u); err != nil { if err := checkRequestOp(u); err != nil {
return err return err
} }
} }
@ -165,7 +165,7 @@ func checkTxnRequest(r *pb.TxnRequest) error {
} }
for _, u := range r.Failure { for _, u := range r.Failure {
if err := checkRequestUnion(u); err != nil { if err := checkRequestOp(u); err != nil {
return err return err
} }
} }
@ -173,11 +173,11 @@ func checkTxnRequest(r *pb.TxnRequest) error {
} }
// checkRequestDupKeys gives rpctypes.ErrGRPCDuplicateKey if the same key is modified twice // checkRequestDupKeys gives rpctypes.ErrGRPCDuplicateKey if the same key is modified twice
func checkRequestDupKeys(reqs []*pb.RequestUnion) error { func checkRequestDupKeys(reqs []*pb.RequestOp) error {
// check put overlap // check put overlap
keys := make(map[string]struct{}) keys := make(map[string]struct{})
for _, requ := range reqs { for _, requ := range reqs {
tv, ok := requ.Request.(*pb.RequestUnion_RequestPut) tv, ok := requ.Request.(*pb.RequestOp_RequestPut)
if !ok { if !ok {
continue continue
} }
@ -205,7 +205,7 @@ func checkRequestDupKeys(reqs []*pb.RequestUnion) error {
// check put overlap with deletes // check put overlap with deletes
for _, requ := range reqs { for _, requ := range reqs {
tv, ok := requ.Request.(*pb.RequestUnion_RequestDeleteRange) tv, ok := requ.Request.(*pb.RequestOp_RequestDeleteRange)
if !ok { if !ok {
continue continue
} }
@ -230,23 +230,23 @@ func checkRequestDupKeys(reqs []*pb.RequestUnion) error {
return nil return nil
} }
func checkRequestUnion(u *pb.RequestUnion) error { func checkRequestOp(u *pb.RequestOp) error {
// TODO: ensure only one of the field is set. // TODO: ensure only one of the field is set.
switch uv := u.Request.(type) { switch uv := u.Request.(type) {
case *pb.RequestUnion_RequestRange: case *pb.RequestOp_RequestRange:
if uv.RequestRange != nil { if uv.RequestRange != nil {
return checkRangeRequest(uv.RequestRange) return checkRangeRequest(uv.RequestRange)
} }
case *pb.RequestUnion_RequestPut: case *pb.RequestOp_RequestPut:
if uv.RequestPut != nil { if uv.RequestPut != nil {
return checkPutRequest(uv.RequestPut) return checkPutRequest(uv.RequestPut)
} }
case *pb.RequestUnion_RequestDeleteRange: case *pb.RequestOp_RequestDeleteRange:
if uv.RequestDeleteRange != nil { if uv.RequestDeleteRange != nil {
return checkDeleteRequest(uv.RequestDeleteRange) return checkDeleteRequest(uv.RequestDeleteRange)
} }
default: default:
// empty union // empty op
return nil return nil
} }
return nil return nil

View File

@ -269,7 +269,7 @@ func (a *applierV3backend) Txn(rt *pb.TxnRequest) (*pb.TxnResponse, error) {
} }
} }
var reqs []*pb.RequestUnion var reqs []*pb.RequestOp
if ok { if ok {
reqs = rt.Success reqs = rt.Success
} else { } else {
@ -295,7 +295,7 @@ func (a *applierV3backend) Txn(rt *pb.TxnRequest) (*pb.TxnResponse, error) {
} }
}() }()
resps := make([]*pb.ResponseUnion, len(reqs)) resps := make([]*pb.ResponseOp, len(reqs))
changedKV := false changedKV := false
for i := range reqs { for i := range reqs {
if reqs[i].GetRequestRange() == nil { if reqs[i].GetRequestRange() == nil {
@ -384,31 +384,31 @@ func (a *applierV3backend) applyCompare(c *pb.Compare) (int64, bool) {
return rev, true return rev, true
} }
func (a *applierV3backend) applyUnion(txnID int64, union *pb.RequestUnion) *pb.ResponseUnion { func (a *applierV3backend) applyUnion(txnID int64, union *pb.RequestOp) *pb.ResponseOp {
switch tv := union.Request.(type) { switch tv := union.Request.(type) {
case *pb.RequestUnion_RequestRange: case *pb.RequestOp_RequestRange:
if tv.RequestRange != nil { if tv.RequestRange != nil {
resp, err := a.Range(txnID, tv.RequestRange) resp, err := a.Range(txnID, tv.RequestRange)
if err != nil { if err != nil {
panic("unexpected error during txn") panic("unexpected error during txn")
} }
return &pb.ResponseUnion{Response: &pb.ResponseUnion_ResponseRange{ResponseRange: resp}} return &pb.ResponseOp{Response: &pb.ResponseOp_ResponseRange{ResponseRange: resp}}
} }
case *pb.RequestUnion_RequestPut: case *pb.RequestOp_RequestPut:
if tv.RequestPut != nil { if tv.RequestPut != nil {
resp, err := a.Put(txnID, tv.RequestPut) resp, err := a.Put(txnID, tv.RequestPut)
if err != nil { if err != nil {
panic("unexpected error during txn") panic("unexpected error during txn")
} }
return &pb.ResponseUnion{Response: &pb.ResponseUnion_ResponsePut{ResponsePut: resp}} return &pb.ResponseOp{Response: &pb.ResponseOp_ResponsePut{ResponsePut: resp}}
} }
case *pb.RequestUnion_RequestDeleteRange: case *pb.RequestOp_RequestDeleteRange:
if tv.RequestDeleteRange != nil { if tv.RequestDeleteRange != nil {
resp, err := a.DeleteRange(txnID, tv.RequestDeleteRange) resp, err := a.DeleteRange(txnID, tv.RequestDeleteRange)
if err != nil { if err != nil {
panic("unexpected error during txn") panic("unexpected error during txn")
} }
return &pb.ResponseUnion{Response: &pb.ResponseUnion_ResponseDeleteRange{ResponseDeleteRange: resp}} return &pb.ResponseOp{Response: &pb.ResponseOp_ResponseDeleteRange{ResponseDeleteRange: resp}}
} }
default: default:
// empty union // empty union
@ -653,9 +653,9 @@ func (s *kvSortByValue) Less(i, j int) bool {
return bytes.Compare(s.kvs[i].Value, s.kvs[j].Value) < 0 return bytes.Compare(s.kvs[i].Value, s.kvs[j].Value) < 0
} }
func (a *applierV3backend) checkRequestLeases(reqs []*pb.RequestUnion) error { func (a *applierV3backend) checkRequestLeases(reqs []*pb.RequestOp) error {
for _, requ := range reqs { for _, requ := range reqs {
tv, ok := requ.Request.(*pb.RequestUnion_RequestPut) tv, ok := requ.Request.(*pb.RequestOp_RequestPut)
if !ok { if !ok {
continue continue
} }
@ -670,9 +670,9 @@ func (a *applierV3backend) checkRequestLeases(reqs []*pb.RequestUnion) error {
return nil return nil
} }
func (a *applierV3backend) checkRequestRange(reqs []*pb.RequestUnion) error { func (a *applierV3backend) checkRequestRange(reqs []*pb.RequestOp) error {
for _, requ := range reqs { for _, requ := range reqs {
tv, ok := requ.Request.(*pb.RequestUnion_RequestRange) tv, ok := requ.Request.(*pb.RequestOp_RequestRange)
if !ok { if !ok {
continue continue
} }

View File

@ -23,8 +23,8 @@
PutResponse PutResponse
DeleteRangeRequest DeleteRangeRequest
DeleteRangeResponse DeleteRangeResponse
RequestUnion RequestOp
ResponseUnion ResponseOp
Compare Compare
TxnRequest TxnRequest
TxnResponse TxnResponse
@ -1006,30 +1006,30 @@ var (
) )
var fileDescriptorEtcdserver = []byte{ var fileDescriptorEtcdserver = []byte{
// 388 bytes of a gzipped FileDescriptorProto // 398 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x5c, 0x92, 0xd1, 0xee, 0xd2, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x5c, 0x92, 0xd1, 0x6e, 0xd3, 0x30,
0x14, 0xc6, 0xff, 0xdb, 0xca, 0x60, 0x15, 0x15, 0x1b, 0x62, 0x4e, 0x88, 0x41, 0x43, 0xbc, 0xf0, 0x14, 0x86, 0xe7, 0xd6, 0x4d, 0x1b, 0x33, 0xa0, 0x58, 0x13, 0x3a, 0x9a, 0x50, 0xa8, 0x2a, 0x2e,
0x4a, 0xdf, 0x01, 0xe1, 0x82, 0x44, 0x0d, 0x82, 0xd1, 0xeb, 0xba, 0x1d, 0xa1, 0x09, 0x5b, 0x47, 0x7a, 0x05, 0xef, 0x30, 0xba, 0x8b, 0x4a, 0x0c, 0x8d, 0x0e, 0x8d, 0x6b, 0xd3, 0x1c, 0x56, 0x4b,
0xdb, 0x4d, 0xde, 0xc0, 0x57, 0xe3, 0xd2, 0x27, 0x30, 0xea, 0x93, 0xd8, 0x16, 0x86, 0xd5, 0x8b, 0x49, 0x9c, 0xd9, 0x27, 0xa1, 0x6f, 0xc0, 0xab, 0xf5, 0x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, 0xef, 0x6f, 0x48, 0x2b, 0xcf, 0xdc, 0x0b, 0x5f, 0x1f, 0x1a, 0x6d, 0x41, 0x4c, 0xae, 0x90, 0x54, 0xae, 0x48, 0xf9, 0xa4, 0x8f, 0x26, 0xc7, 0x47, 0xd3, 0x90, 0x54,
0x50, 0x59, 0x43, 0x1c, 0x6e, 0x21, 0xef, 0xf0, 0x7c, 0x74, 0xfe, 0x35, 0xbd, 0x3b, 0xff, 0x9e, 0x81, 0xf9, 0x1b, 0xbe, 0x2f, 0x1a, 0x47, 0x68, 0x57, 0xcb, 0x30, 0x14, 0xc7, 0x5f, 0xd8, 0xf4,
0x46, 0xdf, 0xed, 0xf9, 0x69, 0xcf, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfb, 0x8e, 0x1a, 0x0d, 0xf8, 0x62, 0xba, 0xff, 0x93, 0x9d, 0xec, 0x0f, 0x19, 0xfb, 0x79, 0xc8, 0xd8, 0xef, 0x43, 0xc6,
0xa0, 0x02, 0x00, 0x00, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0xfb, 0x8e, 0x1a, 0x0d, 0xa0, 0x02, 0x00, 0x00,
} }

View File

@ -1697,51 +1697,51 @@ var (
) )
var fileDescriptorRaftInternal = []byte{ var fileDescriptorRaftInternal = []byte{
// 722 bytes of a gzipped FileDescriptorProto // 725 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x95, 0xcb, 0x6e, 0xd3, 0x4c, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x95, 0x5b, 0x4f, 0x13, 0x41,
0x14, 0xc7, 0xbf, 0xa6, 0xd7, 0x4c, 0x9a, 0x7e, 0x65, 0xda, 0xc2, 0x90, 0x4a, 0xa5, 0x14, 0x71, 0x14, 0xc7, 0x6d, 0xb9, 0x76, 0x4a, 0x11, 0x07, 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, 0x8d, 0x03, 0x71, 0x14, 0x06, 0x31, 0xdc, 0x9b, 0x68, 0x8e, 0x60, 0xed, 0x2c, 0xaa, 0xec, 0x74, 0x23, 0xfe, 0xce, 0x81, 0x38, 0x0a, 0x83, 0x18,
0x3f, 0xfa, 0xb9, 0xf2, 0xdf, 0xd1, 0xaf, 0x95, 0xb1, 0xe3, 0xe4, 0xf9, 0x91, 0x3c, 0xfb, 0x53, 0x1e, 0x2e, 0x1c, 0xff, 0xae, 0x9d, 0x39, 0x1e, 0xd4, 0x0a, 0x27, 0x83, 0x5a, 0xe1, 0xd7, 0xa0,
0xf2, 0xbf, 0x73, 0xf3, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xac, 0x8d, 0xf6, 0xc5, 0x93, 0x07, 0x56, 0x38, 0x98, 0x96, 0xbf, 0x9d, 0x5b, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xac, 0x8d, 0xf6,
0x00, 0x00, 0xc5, 0x93, 0x07, 0x00, 0x00,
} }

File diff suppressed because it is too large Load Diff

View File

@ -86,7 +86,7 @@ func (b *backendQuota) Cost(v interface{}) int {
func costPut(r *pb.PutRequest) int { return kvOverhead + len(r.Key) + len(r.Value) } func costPut(r *pb.PutRequest) int { return kvOverhead + len(r.Key) + len(r.Value) }
func costTxnReq(u *pb.RequestUnion) int { func costTxnReq(u *pb.RequestOp) int {
r := u.GetRequestPut() r := u.GetRequestPut()
if r == nil { if r == nil {
return 0 return 0