|
|
@ -37,6 +37,8 @@ func NewVolumeInfo(m *master_pb.VolumeInformationMessage) (vi VolumeInfo, err er |
|
|
|
Version: needle.Version(m.Version), |
|
|
|
CompactRevision: m.CompactRevision, |
|
|
|
ModifiedAtSecond: m.ModifiedAtSecond, |
|
|
|
RemoteStorageName: m.RemoteStorageName, |
|
|
|
RemoteStorageKey: m.RemoteStorageKey, |
|
|
|
} |
|
|
|
rp, e := NewReplicaPlacementFromByte(byte(m.ReplicaPlacement)) |
|
|
|
if e != nil { |
|
|
@ -81,6 +83,8 @@ func (vi VolumeInfo) ToVolumeInformationMessage() *master_pb.VolumeInformationMe |
|
|
|
Ttl: vi.Ttl.ToUint32(), |
|
|
|
CompactRevision: vi.CompactRevision, |
|
|
|
ModifiedAtSecond: vi.ModifiedAtSecond, |
|
|
|
RemoteStorageName: vi.RemoteStorageName, |
|
|
|
RemoteStorageKey: vi.RemoteStorageKey, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|