|
|
@@ -3,12 +3,14 @@
|
|
|
|
|
|
package main
|
|
|
|
|
|
-import proto "github.com/gogo/protobuf/proto"
|
|
|
-import fmt "fmt"
|
|
|
-import math "math"
|
|
|
-import _ "github.com/gogo/protobuf/gogoproto"
|
|
|
-
|
|
|
-import io "io"
|
|
|
+import (
|
|
|
+ fmt "fmt"
|
|
|
+ _ "github.com/gogo/protobuf/gogoproto"
|
|
|
+ proto "github.com/gogo/protobuf/proto"
|
|
|
+ io "io"
|
|
|
+ math "math"
|
|
|
+ math_bits "math/bits"
|
|
|
+)
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
var _ = proto.Marshal
|
|
|
@@ -19,7 +21,7 @@ var _ = math.Inf
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
// proto package needs to be updated.
|
|
|
-const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
+const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
|
type DatabaseRecord struct {
|
|
|
Addresses []DatabaseAddress `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses"`
|
|
|
@@ -32,7 +34,7 @@ func (m *DatabaseRecord) Reset() { *m = DatabaseRecord{} }
|
|
|
func (m *DatabaseRecord) String() string { return proto.CompactTextString(m) }
|
|
|
func (*DatabaseRecord) ProtoMessage() {}
|
|
|
func (*DatabaseRecord) Descriptor() ([]byte, []int) {
|
|
|
- return fileDescriptor_database_0f49e029703a04f5, []int{0}
|
|
|
+ return fileDescriptor_b90fe3356ea5df07, []int{0}
|
|
|
}
|
|
|
func (m *DatabaseRecord) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
@@ -42,15 +44,15 @@ func (m *DatabaseRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro
|
|
|
return xxx_messageInfo_DatabaseRecord.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
- n, err := m.MarshalTo(b)
|
|
|
+ n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
-func (dst *DatabaseRecord) XXX_Merge(src proto.Message) {
|
|
|
- xxx_messageInfo_DatabaseRecord.Merge(dst, src)
|
|
|
+func (m *DatabaseRecord) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_DatabaseRecord.Merge(m, src)
|
|
|
}
|
|
|
func (m *DatabaseRecord) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
@@ -71,7 +73,7 @@ func (m *ReplicationRecord) Reset() { *m = ReplicationRecord{} }
|
|
|
func (m *ReplicationRecord) String() string { return proto.CompactTextString(m) }
|
|
|
func (*ReplicationRecord) ProtoMessage() {}
|
|
|
func (*ReplicationRecord) Descriptor() ([]byte, []int) {
|
|
|
- return fileDescriptor_database_0f49e029703a04f5, []int{1}
|
|
|
+ return fileDescriptor_b90fe3356ea5df07, []int{1}
|
|
|
}
|
|
|
func (m *ReplicationRecord) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
@@ -81,15 +83,15 @@ func (m *ReplicationRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, e
|
|
|
return xxx_messageInfo_ReplicationRecord.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
- n, err := m.MarshalTo(b)
|
|
|
+ n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
-func (dst *ReplicationRecord) XXX_Merge(src proto.Message) {
|
|
|
- xxx_messageInfo_ReplicationRecord.Merge(dst, src)
|
|
|
+func (m *ReplicationRecord) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_ReplicationRecord.Merge(m, src)
|
|
|
}
|
|
|
func (m *ReplicationRecord) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
@@ -109,7 +111,7 @@ func (m *DatabaseAddress) Reset() { *m = DatabaseAddress{} }
|
|
|
func (m *DatabaseAddress) String() string { return proto.CompactTextString(m) }
|
|
|
func (*DatabaseAddress) ProtoMessage() {}
|
|
|
func (*DatabaseAddress) Descriptor() ([]byte, []int) {
|
|
|
- return fileDescriptor_database_0f49e029703a04f5, []int{2}
|
|
|
+ return fileDescriptor_b90fe3356ea5df07, []int{2}
|
|
|
}
|
|
|
func (m *DatabaseAddress) XXX_Unmarshal(b []byte) error {
|
|
|
return m.Unmarshal(b)
|
|
|
@@ -119,15 +121,15 @@ func (m *DatabaseAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, err
|
|
|
return xxx_messageInfo_DatabaseAddress.Marshal(b, m, deterministic)
|
|
|
} else {
|
|
|
b = b[:cap(b)]
|
|
|
- n, err := m.MarshalTo(b)
|
|
|
+ n, err := m.MarshalToSizedBuffer(b)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return b[:n], nil
|
|
|
}
|
|
|
}
|
|
|
-func (dst *DatabaseAddress) XXX_Merge(src proto.Message) {
|
|
|
- xxx_messageInfo_DatabaseAddress.Merge(dst, src)
|
|
|
+func (m *DatabaseAddress) XXX_Merge(src proto.Message) {
|
|
|
+ xxx_messageInfo_DatabaseAddress.Merge(m, src)
|
|
|
}
|
|
|
func (m *DatabaseAddress) XXX_Size() int {
|
|
|
return m.Size()
|
|
|
@@ -143,10 +145,34 @@ func init() {
|
|
|
proto.RegisterType((*ReplicationRecord)(nil), "main.ReplicationRecord")
|
|
|
proto.RegisterType((*DatabaseAddress)(nil), "main.DatabaseAddress")
|
|
|
}
|
|
|
+
|
|
|
+func init() { proto.RegisterFile("database.proto", fileDescriptor_b90fe3356ea5df07) }
|
|
|
+
|
|
|
+var fileDescriptor_b90fe3356ea5df07 = []byte{
|
|
|
+ // 270 bytes of a gzipped FileDescriptorProto
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x7f, 0x7b, 0x15, 0x8b, 0xfd, 0x34, 0x50, 0x5a,
|
|
|
+ 0x93, 0x43, 0x01, 0xd5, 0x83, 0x5e, 0xc8, 0x5a, 0x9b, 0x32, 0x74, 0x3a, 0x20, 0xf8, 0x1e, 0x9e,
|
|
|
+ 0x19, 0x4a, 0x50, 0x36, 0x11, 0xbd, 0xfc, 0xdd, 0x72, 0xb4, 0x55, 0xcb, 0x7f, 0xda, 0xa4, 0xb7,
|
|
|
+ 0x64, 0xff, 0x4f, 0x8e, 0x32, 0xb2, 0x1b, 0x32, 0xe1, 0xde, 0x01, 0xfb, 0x0d, 0x3c, 0x55, 0xda,
|
|
|
+ 0x86, 0x77, 0x62, 0x31, 0xe0, 0xfc, 0xb4, 0xf9, 0xe4, 0x51, 0xd3, 0x72, 0xb4, 0x6e, 0x39, 0xfa,
|
|
|
+ 0x68, 0x39, 0x7a, 0xed, 0x78, 0xb4, 0xee, 0x78, 0xf4, 0xd6, 0xf1, 0xa8, 0x18, 0xfb, 0x3f, 0xbf,
|
|
|
+ 0xfc, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x7a, 0xa2, 0xf6, 0x1e, 0xb0, 0x01, 0x00, 0x00,
|
|
|
+}
|
|
|
+
|
|
|
func (m *DatabaseRecord) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
- n, err := m.MarshalTo(dAtA)
|
|
|
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
@@ -154,44 +180,51 @@ func (m *DatabaseRecord) Marshal() (dAtA []byte, err error) {
|
|
|
}
|
|
|
|
|
|
func (m *DatabaseRecord) MarshalTo(dAtA []byte) (int, error) {
|
|
|
- var i int
|
|
|
+ size := m.Size()
|
|
|
+ return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+}
|
|
|
+
|
|
|
+func (m *DatabaseRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
+ i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
- if len(m.Addresses) > 0 {
|
|
|
- for _, msg := range m.Addresses {
|
|
|
- dAtA[i] = 0xa
|
|
|
- i++
|
|
|
- i = encodeVarintDatabase(dAtA, i, uint64(msg.Size()))
|
|
|
- n, err := msg.MarshalTo(dAtA[i:])
|
|
|
- if err != nil {
|
|
|
- return 0, err
|
|
|
- }
|
|
|
- i += n
|
|
|
- }
|
|
|
- }
|
|
|
- if m.Misses != 0 {
|
|
|
- dAtA[i] = 0x10
|
|
|
- i++
|
|
|
- i = encodeVarintDatabase(dAtA, i, uint64(m.Misses))
|
|
|
+ if m.Missed != 0 {
|
|
|
+ i = encodeVarintDatabase(dAtA, i, uint64(m.Missed))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x20
|
|
|
}
|
|
|
if m.Seen != 0 {
|
|
|
- dAtA[i] = 0x18
|
|
|
- i++
|
|
|
i = encodeVarintDatabase(dAtA, i, uint64(m.Seen))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x18
|
|
|
}
|
|
|
- if m.Missed != 0 {
|
|
|
- dAtA[i] = 0x20
|
|
|
- i++
|
|
|
- i = encodeVarintDatabase(dAtA, i, uint64(m.Missed))
|
|
|
+ if m.Misses != 0 {
|
|
|
+ i = encodeVarintDatabase(dAtA, i, uint64(m.Misses))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x10
|
|
|
+ }
|
|
|
+ if len(m.Addresses) > 0 {
|
|
|
+ for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
+ {
|
|
|
+ size, err := m.Addresses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i -= size
|
|
|
+ i = encodeVarintDatabase(dAtA, i, uint64(size))
|
|
|
+ }
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ }
|
|
|
}
|
|
|
- return i, nil
|
|
|
+ return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *ReplicationRecord) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
- n, err := m.MarshalTo(dAtA)
|
|
|
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
@@ -199,40 +232,48 @@ func (m *ReplicationRecord) Marshal() (dAtA []byte, err error) {
|
|
|
}
|
|
|
|
|
|
func (m *ReplicationRecord) MarshalTo(dAtA []byte) (int, error) {
|
|
|
- var i int
|
|
|
+ size := m.Size()
|
|
|
+ return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+}
|
|
|
+
|
|
|
+func (m *ReplicationRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
+ i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
- if len(m.Key) > 0 {
|
|
|
- dAtA[i] = 0xa
|
|
|
- i++
|
|
|
- i = encodeVarintDatabase(dAtA, i, uint64(len(m.Key)))
|
|
|
- i += copy(dAtA[i:], m.Key)
|
|
|
+ if m.Seen != 0 {
|
|
|
+ i = encodeVarintDatabase(dAtA, i, uint64(m.Seen))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x18
|
|
|
}
|
|
|
if len(m.Addresses) > 0 {
|
|
|
- for _, msg := range m.Addresses {
|
|
|
- dAtA[i] = 0x12
|
|
|
- i++
|
|
|
- i = encodeVarintDatabase(dAtA, i, uint64(msg.Size()))
|
|
|
- n, err := msg.MarshalTo(dAtA[i:])
|
|
|
- if err != nil {
|
|
|
- return 0, err
|
|
|
+ for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
+ {
|
|
|
+ size, err := m.Addresses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
+ if err != nil {
|
|
|
+ return 0, err
|
|
|
+ }
|
|
|
+ i -= size
|
|
|
+ i = encodeVarintDatabase(dAtA, i, uint64(size))
|
|
|
}
|
|
|
- i += n
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x12
|
|
|
}
|
|
|
}
|
|
|
- if m.Seen != 0 {
|
|
|
- dAtA[i] = 0x18
|
|
|
- i++
|
|
|
- i = encodeVarintDatabase(dAtA, i, uint64(m.Seen))
|
|
|
+ if len(m.Key) > 0 {
|
|
|
+ i -= len(m.Key)
|
|
|
+ copy(dAtA[i:], m.Key)
|
|
|
+ i = encodeVarintDatabase(dAtA, i, uint64(len(m.Key)))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0xa
|
|
|
}
|
|
|
- return i, nil
|
|
|
+ return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func (m *DatabaseAddress) Marshal() (dAtA []byte, err error) {
|
|
|
size := m.Size()
|
|
|
dAtA = make([]byte, size)
|
|
|
- n, err := m.MarshalTo(dAtA)
|
|
|
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
@@ -240,32 +281,40 @@ func (m *DatabaseAddress) Marshal() (dAtA []byte, err error) {
|
|
|
}
|
|
|
|
|
|
func (m *DatabaseAddress) MarshalTo(dAtA []byte) (int, error) {
|
|
|
- var i int
|
|
|
+ size := m.Size()
|
|
|
+ return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
+}
|
|
|
+
|
|
|
+func (m *DatabaseAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
+ i := len(dAtA)
|
|
|
_ = i
|
|
|
var l int
|
|
|
_ = l
|
|
|
- if len(m.Address) > 0 {
|
|
|
- dAtA[i] = 0xa
|
|
|
- i++
|
|
|
- i = encodeVarintDatabase(dAtA, i, uint64(len(m.Address)))
|
|
|
- i += copy(dAtA[i:], m.Address)
|
|
|
- }
|
|
|
if m.Expires != 0 {
|
|
|
- dAtA[i] = 0x10
|
|
|
- i++
|
|
|
i = encodeVarintDatabase(dAtA, i, uint64(m.Expires))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0x10
|
|
|
}
|
|
|
- return i, nil
|
|
|
+ if len(m.Address) > 0 {
|
|
|
+ i -= len(m.Address)
|
|
|
+ copy(dAtA[i:], m.Address)
|
|
|
+ i = encodeVarintDatabase(dAtA, i, uint64(len(m.Address)))
|
|
|
+ i--
|
|
|
+ dAtA[i] = 0xa
|
|
|
+ }
|
|
|
+ return len(dAtA) - i, nil
|
|
|
}
|
|
|
|
|
|
func encodeVarintDatabase(dAtA []byte, offset int, v uint64) int {
|
|
|
+ offset -= sovDatabase(v)
|
|
|
+ base := offset
|
|
|
for v >= 1<<7 {
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
v >>= 7
|
|
|
offset++
|
|
|
}
|
|
|
dAtA[offset] = uint8(v)
|
|
|
- return offset + 1
|
|
|
+ return base
|
|
|
}
|
|
|
func (m *DatabaseRecord) Size() (n int) {
|
|
|
if m == nil {
|
|
|
@@ -330,14 +379,7 @@ func (m *DatabaseAddress) Size() (n int) {
|
|
|
}
|
|
|
|
|
|
func sovDatabase(x uint64) (n int) {
|
|
|
- for {
|
|
|
- n++
|
|
|
- x >>= 7
|
|
|
- if x == 0 {
|
|
|
- break
|
|
|
- }
|
|
|
- }
|
|
|
- return n
|
|
|
+ return (math_bits.Len64(x|1) + 6) / 7
|
|
|
}
|
|
|
func sozDatabase(x uint64) (n int) {
|
|
|
return sovDatabase(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
@@ -357,7 +399,7 @@ func (m *DatabaseRecord) Unmarshal(dAtA []byte) error {
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
- wire |= (uint64(b) & 0x7F) << shift
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
@@ -385,7 +427,7 @@ func (m *DatabaseRecord) Unmarshal(dAtA []byte) error {
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
- msglen |= (int(b) & 0x7F) << shift
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
@@ -394,6 +436,9 @@ func (m *DatabaseRecord) Unmarshal(dAtA []byte) error {
|
|
|
return ErrInvalidLengthDatabase
|
|
|
}
|
|
|
postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthDatabase
|
|
|
+ }
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
@@ -416,7 +461,7 @@ func (m *DatabaseRecord) Unmarshal(dAtA []byte) error {
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
- m.Misses |= (int32(b) & 0x7F) << shift
|
|
|
+ m.Misses |= int32(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
@@ -435,7 +480,7 @@ func (m *DatabaseRecord) Unmarshal(dAtA []byte) error {
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
- m.Seen |= (int64(b) & 0x7F) << shift
|
|
|
+ m.Seen |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
@@ -454,7 +499,7 @@ func (m *DatabaseRecord) Unmarshal(dAtA []byte) error {
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
- m.Missed |= (int64(b) & 0x7F) << shift
|
|
|
+ m.Missed |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
@@ -468,6 +513,9 @@ func (m *DatabaseRecord) Unmarshal(dAtA []byte) error {
|
|
|
if skippy < 0 {
|
|
|
return ErrInvalidLengthDatabase
|
|
|
}
|
|
|
+ if (iNdEx + skippy) < 0 {
|
|
|
+ return ErrInvalidLengthDatabase
|
|
|
+ }
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
@@ -495,7 +543,7 @@ func (m *ReplicationRecord) Unmarshal(dAtA []byte) error {
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
- wire |= (uint64(b) & 0x7F) << shift
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
@@ -523,7 +571,7 @@ func (m *ReplicationRecord) Unmarshal(dAtA []byte) error {
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
- stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
+ stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
@@ -533,6 +581,9 @@ func (m *ReplicationRecord) Unmarshal(dAtA []byte) error {
|
|
|
return ErrInvalidLengthDatabase
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthDatabase
|
|
|
+ }
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
@@ -552,7 +603,7 @@ func (m *ReplicationRecord) Unmarshal(dAtA []byte) error {
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
- msglen |= (int(b) & 0x7F) << shift
|
|
|
+ msglen |= int(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
@@ -561,6 +612,9 @@ func (m *ReplicationRecord) Unmarshal(dAtA []byte) error {
|
|
|
return ErrInvalidLengthDatabase
|
|
|
}
|
|
|
postIndex := iNdEx + msglen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthDatabase
|
|
|
+ }
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
@@ -583,7 +637,7 @@ func (m *ReplicationRecord) Unmarshal(dAtA []byte) error {
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
- m.Seen |= (int64(b) & 0x7F) << shift
|
|
|
+ m.Seen |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
@@ -597,6 +651,9 @@ func (m *ReplicationRecord) Unmarshal(dAtA []byte) error {
|
|
|
if skippy < 0 {
|
|
|
return ErrInvalidLengthDatabase
|
|
|
}
|
|
|
+ if (iNdEx + skippy) < 0 {
|
|
|
+ return ErrInvalidLengthDatabase
|
|
|
+ }
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
@@ -624,7 +681,7 @@ func (m *DatabaseAddress) Unmarshal(dAtA []byte) error {
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
- wire |= (uint64(b) & 0x7F) << shift
|
|
|
+ wire |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
@@ -652,7 +709,7 @@ func (m *DatabaseAddress) Unmarshal(dAtA []byte) error {
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
- stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
+ stringLen |= uint64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
@@ -662,6 +719,9 @@ func (m *DatabaseAddress) Unmarshal(dAtA []byte) error {
|
|
|
return ErrInvalidLengthDatabase
|
|
|
}
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
+ if postIndex < 0 {
|
|
|
+ return ErrInvalidLengthDatabase
|
|
|
+ }
|
|
|
if postIndex > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
@@ -681,7 +741,7 @@ func (m *DatabaseAddress) Unmarshal(dAtA []byte) error {
|
|
|
}
|
|
|
b := dAtA[iNdEx]
|
|
|
iNdEx++
|
|
|
- m.Expires |= (int64(b) & 0x7F) << shift
|
|
|
+ m.Expires |= int64(b&0x7F) << shift
|
|
|
if b < 0x80 {
|
|
|
break
|
|
|
}
|
|
|
@@ -695,6 +755,9 @@ func (m *DatabaseAddress) Unmarshal(dAtA []byte) error {
|
|
|
if skippy < 0 {
|
|
|
return ErrInvalidLengthDatabase
|
|
|
}
|
|
|
+ if (iNdEx + skippy) < 0 {
|
|
|
+ return ErrInvalidLengthDatabase
|
|
|
+ }
|
|
|
if (iNdEx + skippy) > l {
|
|
|
return io.ErrUnexpectedEOF
|
|
|
}
|
|
|
@@ -761,10 +824,13 @@ func skipDatabase(dAtA []byte) (n int, err error) {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
- iNdEx += length
|
|
|
if length < 0 {
|
|
|
return 0, ErrInvalidLengthDatabase
|
|
|
}
|
|
|
+ iNdEx += length
|
|
|
+ if iNdEx < 0 {
|
|
|
+ return 0, ErrInvalidLengthDatabase
|
|
|
+ }
|
|
|
return iNdEx, nil
|
|
|
case 3:
|
|
|
for {
|
|
|
@@ -793,6 +859,9 @@ func skipDatabase(dAtA []byte) (n int, err error) {
|
|
|
return 0, err
|
|
|
}
|
|
|
iNdEx = start + next
|
|
|
+ if iNdEx < 0 {
|
|
|
+ return 0, ErrInvalidLengthDatabase
|
|
|
+ }
|
|
|
}
|
|
|
return iNdEx, nil
|
|
|
case 4:
|
|
|
@@ -811,26 +880,3 @@ var (
|
|
|
ErrInvalidLengthDatabase = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
ErrIntOverflowDatabase = fmt.Errorf("proto: integer overflow")
|
|
|
)
|
|
|
-
|
|
|
-func init() { proto.RegisterFile("database.proto", fileDescriptor_database_0f49e029703a04f5) }
|
|
|
-
|
|
|
-var fileDescriptor_database_0f49e029703a04f5 = []byte{
|
|
|
- // 270 bytes of a gzipped FileDescriptorProto
|
|
|
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0x41, 0x4a, 0xc4, 0x30,
|
|
|
- 0x18, 0x85, 0x9b, 0x49, 0x1d, 0x99, 0x08, 0xa3, 0x06, 0x94, 0x20, 0x12, 0x4b, 0xdd, 0x74, 0xd5,
|
|
|
- 0x01, 0x5d, 0xb9, 0x74, 0xd0, 0x0b, 0xe4, 0x06, 0xe9, 0xe4, 0x77, 0x08, 0x3a, 0x4d, 0x49, 0x2a,
|
|
|
- 0xe8, 0x29, 0xf4, 0x58, 0x5d, 0xce, 0xd2, 0x95, 0x68, 0x7b, 0x11, 0x69, 0x26, 0x55, 0x14, 0x37,
|
|
|
- 0xb3, 0x7b, 0xdf, 0xff, 0xbf, 0x97, 0xbc, 0x84, 0x4c, 0x95, 0xac, 0x65, 0x21, 0x1d, 0xe4, 0x95,
|
|
|
- 0x35, 0xb5, 0xa1, 0xf1, 0x4a, 0xea, 0xf2, 0xe4, 0xdc, 0x42, 0x65, 0xdc, 0xcc, 0x8f, 0x8a, 0xc7,
|
|
|
- 0xbb, 0xd9, 0xd2, 0x2c, 0x8d, 0x07, 0xaf, 0x36, 0xd6, 0xf4, 0x05, 0x91, 0xe9, 0x4d, 0x48, 0x0b,
|
|
|
- 0x58, 0x18, 0xab, 0xe8, 0x15, 0x99, 0x48, 0xa5, 0x2c, 0x38, 0x07, 0x8e, 0xa1, 0x04, 0x67, 0x7b,
|
|
|
- 0x17, 0x47, 0x79, 0x7f, 0x62, 0x3e, 0x18, 0xaf, 0x37, 0xeb, 0x79, 0xdc, 0xbc, 0x9f, 0x45, 0xe2,
|
|
|
- 0xc7, 0x4d, 0x8f, 0xc9, 0x78, 0xa5, 0x7d, 0x6e, 0x94, 0xa0, 0x6c, 0x47, 0x04, 0xa2, 0x94, 0xc4,
|
|
|
- 0x0e, 0xa0, 0x64, 0x38, 0x41, 0x19,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