2 Star 2 Fork 1

cockroachdb/cockroach

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
log.pb.go 23.82 KB
Copy Edit Raw Blame History
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
// Code generated by protoc-gen-gogo.
// source: cockroach/pkg/storage/log.proto
// DO NOT EDIT!
package storage
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import cockroach_roachpb "github.com/cockroachdb/cockroach/pkg/roachpb"
import time "time"
import github_com_cockroachdb_cockroach_pkg_roachpb "github.com/cockroachdb/cockroach/pkg/roachpb"
import github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
import io "io"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
type RangeLogEventType int32
const (
// These are lower case to maintain compatibility with how they were
// originally stored.
// Split is the event type recorded when a range splits.
RangeLogEventType_split RangeLogEventType = 0
// Add is the event type recorded when a range adds a new replica.
RangeLogEventType_add RangeLogEventType = 1
// Remove is the event type recorded when a range removed an existing replica.
RangeLogEventType_remove RangeLogEventType = 2
)
var RangeLogEventType_name = map[int32]string{
0: "split",
1: "add",
2: "remove",
}
var RangeLogEventType_value = map[string]int32{
"split": 0,
"add": 1,
"remove": 2,
}
func (x RangeLogEventType) String() string {
return proto.EnumName(RangeLogEventType_name, int32(x))
}
func (RangeLogEventType) EnumDescriptor() ([]byte, []int) { return fileDescriptorLog, []int{0} }
type RangeLogEvent struct {
Timestamp time.Time `protobuf:"bytes,1,opt,name=timestamp,stdtime" json:"timestamp"`
RangeID github_com_cockroachdb_cockroach_pkg_roachpb.RangeID `protobuf:"varint,2,opt,name=range_id,json=rangeId,proto3,casttype=github.com/cockroachdb/cockroach/pkg/roachpb.RangeID" json:"range_id,omitempty"`
StoreID github_com_cockroachdb_cockroach_pkg_roachpb.StoreID `protobuf:"varint,3,opt,name=store_id,json=storeId,proto3,casttype=github.com/cockroachdb/cockroach/pkg/roachpb.StoreID" json:"store_id,omitempty"`
EventType RangeLogEventType `protobuf:"varint,4,opt,name=event_type,json=eventType,proto3,enum=cockroach.storage.RangeLogEventType" json:"event_type,omitempty"`
OtherRangeID github_com_cockroachdb_cockroach_pkg_roachpb.RangeID `protobuf:"varint,5,opt,name=other_range_id,json=otherRangeId,proto3,casttype=github.com/cockroachdb/cockroach/pkg/roachpb.RangeID" json:"other_range_id,omitempty"`
Info *RangeLogEvent_Info `protobuf:"bytes,6,opt,name=info" json:"info,omitempty"`
}
func (m *RangeLogEvent) Reset() { *m = RangeLogEvent{} }
func (m *RangeLogEvent) String() string { return proto.CompactTextString(m) }
func (*RangeLogEvent) ProtoMessage() {}
func (*RangeLogEvent) Descriptor() ([]byte, []int) { return fileDescriptorLog, []int{0} }
type RangeLogEvent_Info struct {
UpdatedDesc *cockroach_roachpb.RangeDescriptor `protobuf:"bytes,1,opt,name=updated_desc,json=updatedDesc" json:"UpdatedDesc"`
NewDesc *cockroach_roachpb.RangeDescriptor `protobuf:"bytes,2,opt,name=new_desc,json=newDesc" json:"NewDesc"`
AddedReplica *cockroach_roachpb.ReplicaDescriptor `protobuf:"bytes,3,opt,name=added_replica,json=addedReplica" json:"AddReplica"`
RemovedReplica *cockroach_roachpb.ReplicaDescriptor `protobuf:"bytes,4,opt,name=removed_replica,json=removedReplica" json:"RemovedReplica"`
Reason RangeLogEventReason `protobuf:"bytes,5,opt,name=reason,proto3,casttype=RangeLogEventReason" json:"Reason"`
Details string `protobuf:"bytes,6,opt,name=details,proto3" json:"Details"`
}
func (m *RangeLogEvent_Info) Reset() { *m = RangeLogEvent_Info{} }
func (m *RangeLogEvent_Info) String() string { return proto.CompactTextString(m) }
func (*RangeLogEvent_Info) ProtoMessage() {}
func (*RangeLogEvent_Info) Descriptor() ([]byte, []int) { return fileDescriptorLog, []int{0, 0} }
func init() {
proto.RegisterType((*RangeLogEvent)(nil), "cockroach.storage.RangeLogEvent")
proto.RegisterType((*RangeLogEvent_Info)(nil), "cockroach.storage.RangeLogEvent.Info")
proto.RegisterEnum("cockroach.storage.RangeLogEventType", RangeLogEventType_name, RangeLogEventType_value)
}
func (m *RangeLogEvent) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *RangeLogEvent) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
dAtA[i] = 0xa
i++
i = encodeVarintLog(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp)))
n1, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Timestamp, dAtA[i:])
if err != nil {
return 0, err
}
i += n1
if m.RangeID != 0 {
dAtA[i] = 0x10
i++
i = encodeVarintLog(dAtA, i, uint64(m.RangeID))
}
if m.StoreID != 0 {
dAtA[i] = 0x18
i++
i = encodeVarintLog(dAtA, i, uint64(m.StoreID))
}
if m.EventType != 0 {
dAtA[i] = 0x20
i++
i = encodeVarintLog(dAtA, i, uint64(m.EventType))
}
if m.OtherRangeID != 0 {
dAtA[i] = 0x28
i++
i = encodeVarintLog(dAtA, i, uint64(m.OtherRangeID))
}
if m.Info != nil {
dAtA[i] = 0x32
i++
i = encodeVarintLog(dAtA, i, uint64(m.Info.Size()))
n2, err := m.Info.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n2
}
return i, nil
}
func (m *RangeLogEvent_Info) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *RangeLogEvent_Info) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.UpdatedDesc != nil {
dAtA[i] = 0xa
i++
i = encodeVarintLog(dAtA, i, uint64(m.UpdatedDesc.Size()))
n3, err := m.UpdatedDesc.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n3
}
if m.NewDesc != nil {
dAtA[i] = 0x12
i++
i = encodeVarintLog(dAtA, i, uint64(m.NewDesc.Size()))
n4, err := m.NewDesc.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n4
}
if m.AddedReplica != nil {
dAtA[i] = 0x1a
i++
i = encodeVarintLog(dAtA, i, uint64(m.AddedReplica.Size()))
n5, err := m.AddedReplica.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n5
}
if m.RemovedReplica != nil {
dAtA[i] = 0x22
i++
i = encodeVarintLog(dAtA, i, uint64(m.RemovedReplica.Size()))
n6, err := m.RemovedReplica.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n6
}
if len(m.Reason) > 0 {
dAtA[i] = 0x2a
i++
i = encodeVarintLog(dAtA, i, uint64(len(m.Reason)))
i += copy(dAtA[i:], m.Reason)
}
if len(m.Details) > 0 {
dAtA[i] = 0x32
i++
i = encodeVarintLog(dAtA, i, uint64(len(m.Details)))
i += copy(dAtA[i:], m.Details)
}
return i, nil
}
func encodeFixed64Log(dAtA []byte, offset int, v uint64) int {
dAtA[offset] = uint8(v)
dAtA[offset+1] = uint8(v >> 8)
dAtA[offset+2] = uint8(v >> 16)
dAtA[offset+3] = uint8(v >> 24)
dAtA[offset+4] = uint8(v >> 32)
dAtA[offset+5] = uint8(v >> 40)
dAtA[offset+6] = uint8(v >> 48)
dAtA[offset+7] = uint8(v >> 56)
return offset + 8
}
func encodeFixed32Log(dAtA []byte, offset int, v uint32) int {
dAtA[offset] = uint8(v)
dAtA[offset+1] = uint8(v >> 8)
dAtA[offset+2] = uint8(v >> 16)
dAtA[offset+3] = uint8(v >> 24)
return offset + 4
}
func encodeVarintLog(dAtA []byte, offset int, v uint64) int {
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return offset + 1
}
func (m *RangeLogEvent) Size() (n int) {
var l int
_ = l
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp)
n += 1 + l + sovLog(uint64(l))
if m.RangeID != 0 {
n += 1 + sovLog(uint64(m.RangeID))
}
if m.StoreID != 0 {
n += 1 + sovLog(uint64(m.StoreID))
}
if m.EventType != 0 {
n += 1 + sovLog(uint64(m.EventType))
}
if m.OtherRangeID != 0 {
n += 1 + sovLog(uint64(m.OtherRangeID))
}
if m.Info != nil {
l = m.Info.Size()
n += 1 + l + sovLog(uint64(l))
}
return n
}
func (m *RangeLogEvent_Info) Size() (n int) {
var l int
_ = l
if m.UpdatedDesc != nil {
l = m.UpdatedDesc.Size()
n += 1 + l + sovLog(uint64(l))
}
if m.NewDesc != nil {
l = m.NewDesc.Size()
n += 1 + l + sovLog(uint64(l))
}
if m.AddedReplica != nil {
l = m.AddedReplica.Size()
n += 1 + l + sovLog(uint64(l))
}
if m.RemovedReplica != nil {
l = m.RemovedReplica.Size()
n += 1 + l + sovLog(uint64(l))
}
l = len(m.Reason)
if l > 0 {
n += 1 + l + sovLog(uint64(l))
}
l = len(m.Details)
if l > 0 {
n += 1 + l + sovLog(uint64(l))
}
return n
}
func sovLog(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozLog(x uint64) (n int) {
return sovLog(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *RangeLogEvent) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLog
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: RangeLogEvent: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: RangeLogEvent: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLog
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthLog
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field RangeID", wireType)
}
m.RangeID = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLog
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.RangeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field StoreID", wireType)
}
m.StoreID = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLog
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.StoreID |= (github_com_cockroachdb_cockroach_pkg_roachpb.StoreID(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field EventType", wireType)
}
m.EventType = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLog
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.EventType |= (RangeLogEventType(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field OtherRangeID", wireType)
}
m.OtherRangeID = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLog
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.OtherRangeID |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLog
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthLog
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Info == nil {
m.Info = &RangeLogEvent_Info{}
}
if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipLog(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthLog
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *RangeLogEvent_Info) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLog
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Info: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Info: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field UpdatedDesc", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLog
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthLog
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.UpdatedDesc == nil {
m.UpdatedDesc = &cockroach_roachpb.RangeDescriptor{}
}
if err := m.UpdatedDesc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field NewDesc", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLog
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthLog
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.NewDesc == nil {
m.NewDesc = &cockroach_roachpb.RangeDescriptor{}
}
if err := m.NewDesc.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field AddedReplica", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLog
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthLog
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.AddedReplica == nil {
m.AddedReplica = &cockroach_roachpb.ReplicaDescriptor{}
}
if err := m.AddedReplica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field RemovedReplica", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLog
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthLog
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.RemovedReplica == nil {
m.RemovedReplica = &cockroach_roachpb.ReplicaDescriptor{}
}
if err := m.RemovedReplica.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLog
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthLog
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Reason = RangeLogEventReason(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLog
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthLog
}
postIndex := iNdEx + intStringLen
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Details = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipLog(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthLog
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipLog(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowLog
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
wireType := int(wire & 0x7)
switch wireType {
case 0:
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowLog
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
return iNdEx, nil
case 1:
iNdEx += 8
return iNdEx, nil
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowLog
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
length |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
iNdEx += length
if length < 0 {
return 0, ErrInvalidLengthLog
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowLog
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
innerWire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
innerWireType := int(innerWire & 0x7)
if innerWireType == 4 {
break
}
next, err := skipLog(dAtA[start:])
if err != nil {
return 0, err
}
iNdEx = start + next
}
return iNdEx, nil
case 4:
return iNdEx, nil
case 5:
iNdEx += 4
return iNdEx, nil
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
}
panic("unreachable")
}
var (
ErrInvalidLengthLog = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowLog = fmt.Errorf("proto: integer overflow")
)
func init() { proto.RegisterFile("cockroach/pkg/storage/log.proto", fileDescriptorLog) }
var fileDescriptorLog = []byte{
// 593 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0x4b, 0x6f, 0xd3, 0x40,
0x10, 0xc7, 0xe3, 0xe6, 0xe1, 0x64, 0x93, 0xa6, 0xe9, 0xc2, 0x21, 0xca, 0xc1, 0x9b, 0x56, 0xad,
0x14, 0x71, 0xb0, 0xa5, 0x96, 0x4b, 0x8f, 0xb8, 0x41, 0x22, 0x08, 0x81, 0xb4, 0x14, 0x24, 0x38,
0x10, 0x6d, 0xbc, 0x1b, 0xc7, 0x6a, 0xe2, 0xb5, 0xec, 0x4d, 0xab, 0x7e, 0x8b, 0x7e, 0xac, 0x88,
0x53, 0x8f, 0x9c, 0x0c, 0x98, 0x5b, 0x3e, 0x42, 0x4f, 0xc8, 0xbb, 0xce, 0xc3, 0x2a, 0x12, 0xaf,
0xdb, 0xbc, 0xfe, 0x3f, 0xcf, 0xce, 0x8c, 0x01, 0x72, 0xb8, 0x73, 0x19, 0x72, 0xe2, 0x4c, 0xac,
0xe0, 0xd2, 0xb5, 0x22, 0xc1, 0x43, 0xe2, 0x32, 0x6b, 0xca, 0x5d, 0x33, 0x08, 0xb9, 0xe0, 0x70,
0x7f, 0x5d, 0x60, 0x66, 0xc9, 0xce, 0x51, 0x5e, 0x23, 0xad, 0x60, 0x64, 0xcd, 0x98, 0x20, 0x94,
0x08, 0xa2, 0x84, 0x9d, 0xc7, 0x2e, 0x77, 0xb9, 0x34, 0xad, 0xd4, 0xca, 0xa2, 0xc8, 0xe5, 0xdc,
0x9d, 0x32, 0x4b, 0x7a, 0xa3, 0xf9, 0xd8, 0x12, 0xde, 0x8c, 0x45, 0x82, 0xcc, 0x02, 0x55, 0x70,
0x78, 0xa7, 0x83, 0x5d, 0x4c, 0x7c, 0x97, 0xbd, 0xe2, 0xee, 0xf3, 0x2b, 0xe6, 0x0b, 0x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b, 0x49,
0x9b, 0x6b, 0xed, 0xd8, 0x07, 0x8b, 0xef, 0x46, 0x61, 0x91, 0x18, 0xda, 0x5d, 0x62, 0x68, 0x5f,
0x12, 0x43, 0xfb, 0x96, 0x18, 0xda, 0xed, 0x0f, 0xa3, 0xf0, 0x51, 0xcf, 0xae, 0x67, 0x54, 0x91,
0x7f, 0xff, 0xe9, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x78, 0x06, 0x9c, 0xa4, 0xc4, 0x04, 0x00,
0x00,
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_cockroachdb/cockroach.git
git@gitee.com:mirrors_cockroachdb/cockroach.git
mirrors_cockroachdb
cockroach
cockroach
v1.1.6

Search

D67c1975 1850385 1daf7b77 1850385