mirror of
https://github.com/zrepl/zrepl.git
synced 2024-12-26 00:48:55 +01:00
pruning/history: properly communicate via rpc if snapshot does not exist
This commit is contained in:
parent
8799108b55
commit
0c4a3f8dc4
@ -279,6 +279,11 @@ func statePlan(a *args, u updater) state {
|
||||
Op: pdu.SnapshotReplicationStatusReq_Get,
|
||||
}
|
||||
res, err := receiver.SnapshotReplicationStatus(ctx, &req)
|
||||
if err != nil {
|
||||
GetLogger(ctx).
|
||||
WithField("req", req.String()).
|
||||
WithError(err).Error("cannot get snapshot replication status")
|
||||
}
|
||||
if err != nil && shouldRetry(err) {
|
||||
return onErr(u, err)
|
||||
} else if err != nil {
|
||||
@ -286,9 +291,12 @@ func statePlan(a *args, u updater) state {
|
||||
pfs.snaps = nil
|
||||
break
|
||||
}
|
||||
|
||||
if res.Status == pdu.SnapshotReplicationStatusRes_Nonexistent {
|
||||
GetLogger(ctx).
|
||||
Debug("snapshot does not exist in history, assuming was replicated")
|
||||
}
|
||||
pfs.snaps = append(pfs.snaps, snapshot{
|
||||
replicated: res.Replicated,
|
||||
replicated: !(res.Status != pdu.SnapshotReplicationStatusRes_Replicated),
|
||||
date: creation,
|
||||
fsv: tfsv,
|
||||
})
|
||||
|
@ -127,23 +127,30 @@ func (p *Sender) SnapshotReplicationStatus(ctx context.Context, req *pdu.Snapsho
|
||||
Name: req.Snapshot, //FIXME validation
|
||||
}
|
||||
|
||||
replicated := false
|
||||
var status pdu.SnapshotReplicationStatusRes_Status
|
||||
switch req.Op {
|
||||
case pdu.SnapshotReplicationStatusReq_Get:
|
||||
replicated, err = zfs.ZFSGetReplicatedProperty(dp, &version)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
replicated, err := zfs.ZFSGetReplicatedProperty(dp, &version)
|
||||
if _, ok := err.(*zfs.DatasetDoesNotExist); ok {
|
||||
status = pdu.SnapshotReplicationStatusRes_Nonexistent
|
||||
} else if err != nil {
|
||||
|
||||
}
|
||||
if replicated {
|
||||
status = pdu.SnapshotReplicationStatusRes_Replicated
|
||||
} else {
|
||||
status = pdu.SnapshotReplicationStatusRes_NotReplicated
|
||||
}
|
||||
case pdu.SnapshotReplicationStatusReq_SetReplicated:
|
||||
err = zfs.ZFSSetReplicatedProperty(dp, &version, true)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
replicated = true
|
||||
status = pdu.SnapshotReplicationStatusRes_Replicated
|
||||
default:
|
||||
return nil, errors.Errorf("unknown opcode %v", req.Op)
|
||||
}
|
||||
return &pdu.SnapshotReplicationStatusRes{Replicated: replicated}, nil
|
||||
return &pdu.SnapshotReplicationStatusRes{Status: status}, nil
|
||||
}
|
||||
|
||||
type FSFilter interface {
|
||||
|
@ -434,8 +434,8 @@ func (s *ReplicationStep) doMarkReplicated(ctx context.Context, sender Sender) S
|
||||
log.WithError(err).Error("error marking snapshot as replicated")
|
||||
return updateStateError(err)
|
||||
}
|
||||
if res.Replicated != true {
|
||||
err := fmt.Errorf("sender did not report snapshot as replicated")
|
||||
if res.Status != pdu.SnapshotReplicationStatusRes_Replicated {
|
||||
err := fmt.Errorf("sender did not report snapshot as replicated: %s", res.Status)
|
||||
log.Error(err.Error())
|
||||
return updateStateError(err)
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ func (x FilesystemVersion_VersionType) String() string {
|
||||
return proto.EnumName(FilesystemVersion_VersionType_name, int32(x))
|
||||
}
|
||||
func (FilesystemVersion_VersionType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{5, 0}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{5, 0}
|
||||
}
|
||||
|
||||
type SnapshotReplicationStatusReq_Op int32
|
||||
@ -61,7 +61,33 @@ func (x SnapshotReplicationStatusReq_Op) String() string {
|
||||
return proto.EnumName(SnapshotReplicationStatusReq_Op_name, int32(x))
|
||||
}
|
||||
func (SnapshotReplicationStatusReq_Op) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{14, 0}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{14, 0}
|
||||
}
|
||||
|
||||
type SnapshotReplicationStatusRes_Status int32
|
||||
|
||||
const (
|
||||
SnapshotReplicationStatusRes_Nonexistent SnapshotReplicationStatusRes_Status = 0
|
||||
SnapshotReplicationStatusRes_NotReplicated SnapshotReplicationStatusRes_Status = 1
|
||||
SnapshotReplicationStatusRes_Replicated SnapshotReplicationStatusRes_Status = 2
|
||||
)
|
||||
|
||||
var SnapshotReplicationStatusRes_Status_name = map[int32]string{
|
||||
0: "Nonexistent",
|
||||
1: "NotReplicated",
|
||||
2: "Replicated",
|
||||
}
|
||||
var SnapshotReplicationStatusRes_Status_value = map[string]int32{
|
||||
"Nonexistent": 0,
|
||||
"NotReplicated": 1,
|
||||
"Replicated": 2,
|
||||
}
|
||||
|
||||
func (x SnapshotReplicationStatusRes_Status) String() string {
|
||||
return proto.EnumName(SnapshotReplicationStatusRes_Status_name, int32(x))
|
||||
}
|
||||
func (SnapshotReplicationStatusRes_Status) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{15, 0}
|
||||
}
|
||||
|
||||
type ListFilesystemReq struct {
|
||||
@ -74,7 +100,7 @@ func (m *ListFilesystemReq) Reset() { *m = ListFilesystemReq{} }
|
||||
func (m *ListFilesystemReq) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListFilesystemReq) ProtoMessage() {}
|
||||
func (*ListFilesystemReq) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{0}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{0}
|
||||
}
|
||||
func (m *ListFilesystemReq) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListFilesystemReq.Unmarshal(m, b)
|
||||
@ -105,7 +131,7 @@ func (m *ListFilesystemRes) Reset() { *m = ListFilesystemRes{} }
|
||||
func (m *ListFilesystemRes) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListFilesystemRes) ProtoMessage() {}
|
||||
func (*ListFilesystemRes) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{1}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{1}
|
||||
}
|
||||
func (m *ListFilesystemRes) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListFilesystemRes.Unmarshal(m, b)
|
||||
@ -144,7 +170,7 @@ func (m *Filesystem) Reset() { *m = Filesystem{} }
|
||||
func (m *Filesystem) String() string { return proto.CompactTextString(m) }
|
||||
func (*Filesystem) ProtoMessage() {}
|
||||
func (*Filesystem) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{2}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{2}
|
||||
}
|
||||
func (m *Filesystem) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Filesystem.Unmarshal(m, b)
|
||||
@ -189,7 +215,7 @@ func (m *ListFilesystemVersionsReq) Reset() { *m = ListFilesystemVersion
|
||||
func (m *ListFilesystemVersionsReq) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListFilesystemVersionsReq) ProtoMessage() {}
|
||||
func (*ListFilesystemVersionsReq) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{3}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{3}
|
||||
}
|
||||
func (m *ListFilesystemVersionsReq) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListFilesystemVersionsReq.Unmarshal(m, b)
|
||||
@ -227,7 +253,7 @@ func (m *ListFilesystemVersionsRes) Reset() { *m = ListFilesystemVersion
|
||||
func (m *ListFilesystemVersionsRes) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListFilesystemVersionsRes) ProtoMessage() {}
|
||||
func (*ListFilesystemVersionsRes) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{4}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{4}
|
||||
}
|
||||
func (m *ListFilesystemVersionsRes) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListFilesystemVersionsRes.Unmarshal(m, b)
|
||||
@ -269,7 +295,7 @@ func (m *FilesystemVersion) Reset() { *m = FilesystemVersion{} }
|
||||
func (m *FilesystemVersion) String() string { return proto.CompactTextString(m) }
|
||||
func (*FilesystemVersion) ProtoMessage() {}
|
||||
func (*FilesystemVersion) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{5}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{5}
|
||||
}
|
||||
func (m *FilesystemVersion) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_FilesystemVersion.Unmarshal(m, b)
|
||||
@ -349,7 +375,7 @@ func (m *SendReq) Reset() { *m = SendReq{} }
|
||||
func (m *SendReq) String() string { return proto.CompactTextString(m) }
|
||||
func (*SendReq) ProtoMessage() {}
|
||||
func (*SendReq) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{6}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{6}
|
||||
}
|
||||
func (m *SendReq) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SendReq.Unmarshal(m, b)
|
||||
@ -430,7 +456,7 @@ func (m *Property) Reset() { *m = Property{} }
|
||||
func (m *Property) String() string { return proto.CompactTextString(m) }
|
||||
func (*Property) ProtoMessage() {}
|
||||
func (*Property) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{7}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{7}
|
||||
}
|
||||
func (m *Property) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Property.Unmarshal(m, b)
|
||||
@ -479,7 +505,7 @@ func (m *SendRes) Reset() { *m = SendRes{} }
|
||||
func (m *SendRes) String() string { return proto.CompactTextString(m) }
|
||||
func (*SendRes) ProtoMessage() {}
|
||||
func (*SendRes) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{8}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{8}
|
||||
}
|
||||
func (m *SendRes) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SendRes.Unmarshal(m, b)
|
||||
@ -533,7 +559,7 @@ func (m *ReceiveReq) Reset() { *m = ReceiveReq{} }
|
||||
func (m *ReceiveReq) String() string { return proto.CompactTextString(m) }
|
||||
func (*ReceiveReq) ProtoMessage() {}
|
||||
func (*ReceiveReq) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{9}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{9}
|
||||
}
|
||||
func (m *ReceiveReq) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ReceiveReq.Unmarshal(m, b)
|
||||
@ -577,7 +603,7 @@ func (m *ReceiveRes) Reset() { *m = ReceiveRes{} }
|
||||
func (m *ReceiveRes) String() string { return proto.CompactTextString(m) }
|
||||
func (*ReceiveRes) ProtoMessage() {}
|
||||
func (*ReceiveRes) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{10}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{10}
|
||||
}
|
||||
func (m *ReceiveRes) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ReceiveRes.Unmarshal(m, b)
|
||||
@ -610,7 +636,7 @@ func (m *DestroySnapshotsReq) Reset() { *m = DestroySnapshotsReq{} }
|
||||
func (m *DestroySnapshotsReq) String() string { return proto.CompactTextString(m) }
|
||||
func (*DestroySnapshotsReq) ProtoMessage() {}
|
||||
func (*DestroySnapshotsReq) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{11}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{11}
|
||||
}
|
||||
func (m *DestroySnapshotsReq) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DestroySnapshotsReq.Unmarshal(m, b)
|
||||
@ -656,7 +682,7 @@ func (m *DestroySnapshotRes) Reset() { *m = DestroySnapshotRes{} }
|
||||
func (m *DestroySnapshotRes) String() string { return proto.CompactTextString(m) }
|
||||
func (*DestroySnapshotRes) ProtoMessage() {}
|
||||
func (*DestroySnapshotRes) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{12}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{12}
|
||||
}
|
||||
func (m *DestroySnapshotRes) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DestroySnapshotRes.Unmarshal(m, b)
|
||||
@ -701,7 +727,7 @@ func (m *DestroySnapshotsRes) Reset() { *m = DestroySnapshotsRes{} }
|
||||
func (m *DestroySnapshotsRes) String() string { return proto.CompactTextString(m) }
|
||||
func (*DestroySnapshotsRes) ProtoMessage() {}
|
||||
func (*DestroySnapshotsRes) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{13}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{13}
|
||||
}
|
||||
func (m *DestroySnapshotsRes) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_DestroySnapshotsRes.Unmarshal(m, b)
|
||||
@ -741,7 +767,7 @@ func (m *SnapshotReplicationStatusReq) Reset() { *m = SnapshotReplicatio
|
||||
func (m *SnapshotReplicationStatusReq) String() string { return proto.CompactTextString(m) }
|
||||
func (*SnapshotReplicationStatusReq) ProtoMessage() {}
|
||||
func (*SnapshotReplicationStatusReq) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{14}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{14}
|
||||
}
|
||||
func (m *SnapshotReplicationStatusReq) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SnapshotReplicationStatusReq.Unmarshal(m, b)
|
||||
@ -783,17 +809,17 @@ func (m *SnapshotReplicationStatusReq) GetOp() SnapshotReplicationStatusReq_Op {
|
||||
}
|
||||
|
||||
type SnapshotReplicationStatusRes struct {
|
||||
Replicated bool `protobuf:"varint,1,opt,name=Replicated,proto3" json:"Replicated,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
Status SnapshotReplicationStatusRes_Status `protobuf:"varint,1,opt,name=status,proto3,enum=pdu.SnapshotReplicationStatusRes_Status" json:"status,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SnapshotReplicationStatusRes) Reset() { *m = SnapshotReplicationStatusRes{} }
|
||||
func (m *SnapshotReplicationStatusRes) String() string { return proto.CompactTextString(m) }
|
||||
func (*SnapshotReplicationStatusRes) ProtoMessage() {}
|
||||
func (*SnapshotReplicationStatusRes) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_pdu_ae88208ed9690d0f, []int{15}
|
||||
return fileDescriptor_pdu_b3a98b3542e9fb4e, []int{15}
|
||||
}
|
||||
func (m *SnapshotReplicationStatusRes) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SnapshotReplicationStatusRes.Unmarshal(m, b)
|
||||
@ -813,11 +839,11 @@ func (m *SnapshotReplicationStatusRes) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_SnapshotReplicationStatusRes proto.InternalMessageInfo
|
||||
|
||||
func (m *SnapshotReplicationStatusRes) GetReplicated() bool {
|
||||
func (m *SnapshotReplicationStatusRes) GetStatus() SnapshotReplicationStatusRes_Status {
|
||||
if m != nil {
|
||||
return m.Replicated
|
||||
return m.Status
|
||||
}
|
||||
return false
|
||||
return SnapshotReplicationStatusRes_Nonexistent
|
||||
}
|
||||
|
||||
func init() {
|
||||
@ -839,50 +865,53 @@ func init() {
|
||||
proto.RegisterType((*SnapshotReplicationStatusRes)(nil), "pdu.SnapshotReplicationStatusRes")
|
||||
proto.RegisterEnum("pdu.FilesystemVersion_VersionType", FilesystemVersion_VersionType_name, FilesystemVersion_VersionType_value)
|
||||
proto.RegisterEnum("pdu.SnapshotReplicationStatusReq_Op", SnapshotReplicationStatusReq_Op_name, SnapshotReplicationStatusReq_Op_value)
|
||||
proto.RegisterEnum("pdu.SnapshotReplicationStatusRes_Status", SnapshotReplicationStatusRes_Status_name, SnapshotReplicationStatusRes_Status_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("pdu.proto", fileDescriptor_pdu_ae88208ed9690d0f) }
|
||||
func init() { proto.RegisterFile("pdu.proto", fileDescriptor_pdu_b3a98b3542e9fb4e) }
|
||||
|
||||
var fileDescriptor_pdu_ae88208ed9690d0f = []byte{
|
||||
// 627 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xdb, 0x6e, 0x13, 0x31,
|
||||
0x10, 0x65, 0x37, 0x69, 0x93, 0x4c, 0x7a, 0x49, 0xdd, 0xaa, 0x2c, 0x55, 0x85, 0x22, 0x8b, 0x87,
|
||||
0x80, 0x44, 0x24, 0x42, 0xc5, 0x0b, 0x12, 0x0f, 0xbd, 0xf2, 0x80, 0x68, 0xe5, 0x84, 0xaa, 0x4f,
|
||||
0x48, 0x4b, 0x77, 0xa4, 0xae, 0x72, 0xb1, 0x6b, 0xef, 0x22, 0xc2, 0x07, 0xf0, 0x41, 0xbc, 0xf1,
|
||||
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x47,
|
||||
0x41, 0xa5, 0xed, 0x75, 0xaa, 0x82, 0xce, 0xec, 0x10, 0x1a, 0x27, 0x1a, 0xc3, 0x04, 0x07, 0x37,
|
||||
0x17, 0x41, 0x95, 0x02, 0x25, 0xc1, 0x0e, 0xa0, 0x4e, 0x20, 0x96, 0x93, 0x60, 0x8d, 0x32, 0x15,
|
||||
0x98, 0xbf, 0x84, 0xa6, 0x53, 0x96, 0x6d, 0x40, 0xbd, 0x3f, 0x09, 0x95, 0xb9, 0x93, 0x49, 0xeb,
|
||||
0x89, 0x45, 0xc7, 0x52, 0x0e, 0xc7, 0xa1, 0x1e, 0xb6, 0x3c, 0xfe, 0xc7, 0x83, 0x5a, 0x1f, 0x27,
|
||||
0xd1, 0x0a, 0x73, 0xb5, 0x26, 0xcf, 0xb5, 0x1c, 0xe7, 0xc6, 0xed, 0x99, 0x6d, 0x81, 0x3f, 0x90,
|
||||
0x64, 0xbb, 0x21, 0xfc, 0x81, 0x9c, 0xbf, 0xda, 0xea, 0xc2, 0xd5, 0x92, 0x71, 0x39, 0x56, 0x1a,
|
||||
0x8d, 0x21, 0xe3, 0x75, 0x51, 0x60, 0xb6, 0x07, 0x6b, 0xa7, 0x18, 0xa5, 0x2a, 0x58, 0xa7, 0xc0,
|
||||
0x0c, 0xb0, 0x7d, 0x58, 0x3f, 0xd5, 0x53, 0x91, 0x4e, 0x82, 0x1a, 0xd1, 0x19, 0xe2, 0x47, 0x50,
|
||||
0xbf, 0xd2, 0x52, 0xa1, 0x4e, 0xa6, 0xc5, 0x50, 0x3d, 0x67, 0xa8, 0x7b, 0xb0, 0x76, 0x1d, 0x8e,
|
||||
0xd2, 0x7c, 0xd2, 0x33, 0xc0, 0x7f, 0x15, 0x1d, 0x1b, 0xd6, 0x81, 0xed, 0x2f, 0x06, 0x23, 0xd7,
|
||||
0xb1, 0x47, 0x25, 0xe6, 0x69, 0xc6, 0x61, 0xe3, 0xec, 0x87, 0xc2, 0xdb, 0x04, 0xa3, 0x7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0x3e, 0x16, 0x1f,
|
||||
0x60, 0xd4, 0xf2, 0xf8, 0x87, 0xa5, 0x9e, 0x8d, 0xf5, 0x5c, 0xea, 0xb3, 0xb7, 0xec, 0x30, 0xdf,
|
||||
0xd6, 0xe9, 0x47, 0xe0, 0xed, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf0, 0xc1, 0x08, 0xf6, 0x11,
|
||||
0x06, 0x00, 0x00,
|
||||
var fileDescriptor_pdu_b3a98b3542e9fb4e = []byte{
|
||||
// 666 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xcf, 0x6e, 0xd3, 0x4e,
|
||||
0x10, 0xfe, 0xd9, 0x49, 0xf3, 0x67, 0xd2, 0xa6, 0xe9, 0xb6, 0xea, 0xcf, 0x54, 0x15, 0x8a, 0x56,
|
||||
0x1c, 0x02, 0x12, 0x91, 0x08, 0x15, 0x17, 0x38, 0xa0, 0xfe, 0xe5, 0x80, 0xda, 0x6a, 0x13, 0xaa,
|
||||
0x9e, 0x90, 0x4c, 0x3d, 0x52, 0xad, 0x24, 0xde, 0xed, 0xee, 0x1a, 0x35, 0x3c, 0x00, 0x8f, 0xc1,
|
||||
0x43, 0x70, 0xe3, 0x4d, 0x78, 0x1c, 0xe4, 0x89, 0xed, 0xb8, 0x49, 0x09, 0x39, 0x65, 0xbe, 0x6f,
|
||||
0x66, 0x67, 0xbe, 0x99, 0xdd, 0x71, 0xa0, 0xae, 0x82, 0xb8, 0xab, 0xb4, 0xb4, 0x92, 0x95, 0x54,
|
||||
0x10, 0xf3, 0x6d, 0xd8, 0xfa, 0x18, 0x1a, 0x7b, 0x1a, 0x8e, 0xd0, 0x4c, 0x8c, 0xc5, 0xb1, 0xc0,
|
||||
0x3b, 0x7e, 0xba, 0x48, 0x1a, 0xf6, 0x0a, 0x1a, 0x33, 0xc2, 0x78, 0x4e, 0xbb, 0xd4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0x42, 0xff, 0x32, 0xaf, 0xff, 0x04, 0x00, 0x00,
|
||||
0xff, 0xff, 0x3a, 0x00, 0x8b, 0x6e, 0x72, 0x06, 0x00, 0x00,
|
||||
}
|
||||
|
@ -108,5 +108,10 @@ message SnapshotReplicationStatusReq {
|
||||
}
|
||||
|
||||
message SnapshotReplicationStatusRes {
|
||||
bool Replicated = 1;
|
||||
enum Status {
|
||||
Nonexistent = 0;
|
||||
NotReplicated = 1;
|
||||
Replicated = 2;
|
||||
}
|
||||
Status status = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user