mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
Merge pull request #2556 from dachary/wip-9572-erasure-code-blaumroth
erasure-code: restore jerasure BlaumRoth default w Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
9c4616dcd2
@ -454,6 +454,10 @@ void ErasureCodeJerasureLiberation::prepare()
|
||||
//
|
||||
bool ErasureCodeJerasureBlaumRoth::check_w(ostream *ss) const
|
||||
{
|
||||
// back in Firefly, w = 7 was the default and produced useable
|
||||
// chunks. Tolerate this value for backward compatibility.
|
||||
if (w == 7)
|
||||
return true;
|
||||
if (w <= 2 || !is_prime(w+1)) {
|
||||
*ss << "w=" << w << " must be greater than two and "
|
||||
<< "w+1 must be prime" << std::endl;
|
||||
|
@ -236,7 +236,6 @@ public:
|
||||
ErasureCodeJerasureBlaumRoth() :
|
||||
ErasureCodeJerasureLiberation("blaum_roth")
|
||||
{
|
||||
DEFAULT_W = 6;
|
||||
}
|
||||
|
||||
virtual bool check_w(ostream *ss) const;
|
||||
|
Loading…
Reference in New Issue
Block a user