From: Loic Dachary Date: Sun, 17 May 2015 16:07:33 +0000 (+0200) Subject: erasure-code: return ErasureCodeLrc::parse_kml error X-Git-Tag: v9.0.2~78^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=17ecd6f942c1e72f260a33de0e50827ef25b0c59;p=ceph.git erasure-code: return ErasureCodeLrc::parse_kml error Instead of always returning 0 Signed-off-by: Loic Dachary --- diff --git a/src/erasure-code/lrc/ErasureCodeLrc.cc b/src/erasure-code/lrc/ErasureCodeLrc.cc index aafc3040484..41a9c3400e8 100644 --- a/src/erasure-code/lrc/ErasureCodeLrc.cc +++ b/src/erasure-code/lrc/ErasureCodeLrc.cc @@ -382,7 +382,7 @@ int ErasureCodeLrc::parse_kml(ErasureCodeProfile &profile, ruleset_steps.push_back(Step("chooseleaf", ruleset_failure_domain, 0)); } - return 0; + return err; } int ErasureCodeLrc::parse_ruleset(ErasureCodeProfile &profile,