diff options
author | Loic Dachary <ldachary@redhat.com> | 2014-12-16 13:31:30 +0100 |
---|---|---|
committer | Loic Dachary <ldachary@redhat.com> | 2014-12-16 13:56:31 +0100 |
commit | bb80437f247345502203ad87a7e7bbb5b5602b9a (patch) | |
tree | de98124b09001359156f6bf6de3ac99829b31d44 /src/erasure-code/jerasure | |
parent | Merge pull request #3161 from anandgbhat/wip-jemalloc (diff) | |
download | ceph-bb80437f247345502203ad87a7e7bbb5b5602b9a.tar.xz ceph-bb80437f247345502203ad87a7e7bbb5b5602b9a.zip |
erasure-code: relax cauchy w restrictions
A restriction that the w parameter of the cauchy technique is limited to
8, 16 or 32 was added incorrectly while refactoring parameter parsing in
the jerasure plugin and must be relaxed.
http://tracker.ceph.com/issues/10325 Fixes: #10325
Signed-off-by: Loic Dachary <ldachary@redhat.com>
Diffstat (limited to 'src/erasure-code/jerasure')
-rw-r--r-- | src/erasure-code/jerasure/ErasureCodeJerasure.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/erasure-code/jerasure/ErasureCodeJerasure.cc b/src/erasure-code/jerasure/ErasureCodeJerasure.cc index b495f171d35..f3944e83c0f 100644 --- a/src/erasure-code/jerasure/ErasureCodeJerasure.cc +++ b/src/erasure-code/jerasure/ErasureCodeJerasure.cc @@ -298,13 +298,6 @@ int ErasureCodeJerasureCauchy::parse(const map<std::string,std::string> ¶met ostream *ss) { int err = ErasureCodeJerasure::parse(parameters, ss); - if (w != 8 && w != 16 && w != 32) { - *ss << "Cauchy: w=" << w - << " must be one of {8, 16, 32} : revert to " - << DEFAULT_W << std::endl; - w = DEFAULT_W; - err = -EINVAL; - } err |= to_int("packetsize", parameters, &packetsize, DEFAULT_PACKETSIZE, ss); err |= to_bool("jerasure-per-chunk-alignment", parameters, &per_chunk_alignment, false, ss); |