From b58cbbab4f74e352c3d4a61190cea2731057b3c9 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Sat, 30 May 2015 12:40:26 +0200 Subject: [PATCH] erasure-code: set max_size to chunk_count() instead of 20 for shec See 8b64fe93b088a3a33d357869c47e6bf928c3f0e4 for a detailed explanation. Signed-off-by: Loic Dachary (cherry picked from commit a44499f7e6609d9a32254dc6f4303122de74db31) --- src/erasure-code/shec/ErasureCodeShec.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/erasure-code/shec/ErasureCodeShec.cc b/src/erasure-code/shec/ErasureCodeShec.cc index f775715ec8e18..b0437a5c0253a 100644 --- a/src/erasure-code/shec/ErasureCodeShec.cc +++ b/src/erasure-code/shec/ErasureCodeShec.cc @@ -50,6 +50,7 @@ int ErasureCodeShec::create_ruleset(const string &name, if (ruleid < 0) { return ruleid; } else { + crush.set_rule_mask_max_size(ruleid, get_chunk_count()); return crush.get_rule_mask_ruleset(ruleid); } } -- 2.39.5