]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
erasure-code: relax cauchy w restrictions 3184/head
authorLoic Dachary <ldachary@redhat.com>
Tue, 16 Dec 2014 12:31:30 +0000 (13:31 +0100)
committerLoic Dachary <ldachary@redhat.com>
Tue, 16 Dec 2014 12:56:31 +0000 (13:56 +0100)
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>
src/erasure-code/jerasure/ErasureCodeJerasure.cc

index b495f171d352c60d20cab2804c6d1fe11ba5576c..f3944e83c0faaf8fd2af696850a331b1580e223c 100644 (file)
@@ -298,13 +298,6 @@ int ErasureCodeJerasureCauchy::parse(const map<std::string,std::string> &paramet
                                     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);