[OBJECT-16617] Fix Replica mapper
Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
parent
45e73a6f8e
commit
e8d5594c52
1 changed files with 8 additions and 2 deletions
|
@ -12,7 +12,9 @@ public static class PolicyMapper
|
||||||
return new Replica
|
return new Replica
|
||||||
{
|
{
|
||||||
Count = (uint)replica.Count,
|
Count = (uint)replica.Count,
|
||||||
Selector = replica.Selector
|
Selector = replica.Selector,
|
||||||
|
EcDataCount = replica.EcDataCount,
|
||||||
|
EcParityCount = replica.EcParityCount
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +25,11 @@ public static class PolicyMapper
|
||||||
throw new ArgumentNullException(nameof(replica));
|
throw new ArgumentNullException(nameof(replica));
|
||||||
}
|
}
|
||||||
|
|
||||||
return new FrostFsReplica((int)replica.Count, replica.Selector);
|
return new FrostFsReplica((int)replica.Count, replica.Selector)
|
||||||
|
{
|
||||||
|
EcDataCount = replica.EcDataCount,
|
||||||
|
EcParityCount = replica.EcParityCount
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Selector ToMessage(this FrostFsSelector selector)
|
public static Selector ToMessage(this FrostFsSelector selector)
|
||||||
|
|
Loading…
Add table
Reference in a new issue