skip network error when remote volumes start

This commit is contained in:
Chris Lu
2021-03-01 01:20:06 -08:00
parent 6e43e8ce17
commit c46d16b2f3
2 changed files with 8 additions and 0 deletions

View File

@@ -36,6 +36,9 @@ func NewReplicaPlacementFromByte(b byte) (*ReplicaPlacement, error) {
}
func (rp *ReplicaPlacement) Byte() byte {
if rp == nil {
return 0
}
ret := rp.DiffDataCenterCount*100 + rp.DiffRackCount*10 + rp.SameRackCount
return byte(ret)
}