summaryrefslogtreecommitdiffstats
path: root/src/erasure-code/shec
diff options
context:
space:
mode:
authorLoic Dachary <ldachary@redhat.com>2015-06-01 19:50:05 +0200
committerLoic Dachary <ldachary@redhat.com>2015-06-01 21:52:09 +0200
commit77e5330da193a1a05e1daf73a8a07aa692f2c6bb (patch)
tree9854171652ead648502a9cb64545c8a9fac89a3c /src/erasure-code/shec
parenterasure-code: expect all plugins to implement get_profile (diff)
downloadceph-77e5330da193a1a05e1daf73a8a07aa692f2c6bb.tar.xz
ceph-77e5330da193a1a05e1daf73a8a07aa692f2c6bb.zip
erasure-code: implement get_profile for every plugins
The ErasureCode::init function is implemented to store the profile and is called by the init method of each plugin. The ErasureCode::get_profile function is implemented to return the profile that was stored. A specialized ostream<< function is implemented to facilitate the display of the profile. Signed-off-by: Loic Dachary <ldachary@redhat.com>
Diffstat (limited to 'src/erasure-code/shec')
-rw-r--r--src/erasure-code/shec/ErasureCodeShec.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/erasure-code/shec/ErasureCodeShec.cc b/src/erasure-code/shec/ErasureCodeShec.cc
index c60a9562a6e..148525e6bbf 100644
--- a/src/erasure-code/shec/ErasureCodeShec.cc
+++ b/src/erasure-code/shec/ErasureCodeShec.cc
@@ -68,6 +68,7 @@ int ErasureCodeShec::init(ErasureCodeProfile &profile,
if (err)
return err;
prepare();
+ ErasureCode::init(profile, ss);
return err;
}