summaryrefslogtreecommitdiffstats
path: root/src/erasure-code/lrc/ErasureCodeLrc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/erasure-code/lrc/ErasureCodeLrc.h')
-rw-r--r--src/erasure-code/lrc/ErasureCodeLrc.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/erasure-code/lrc/ErasureCodeLrc.h b/src/erasure-code/lrc/ErasureCodeLrc.h
index 1c732737bb2..cd4351b77fe 100644
--- a/src/erasure-code/lrc/ErasureCodeLrc.h
+++ b/src/erasure-code/lrc/ErasureCodeLrc.h
@@ -54,7 +54,7 @@ public:
vector<int> chunks;
set<int> chunks_as_set;
string chunks_map;
- map<string,string> parameters;
+ ErasureCodeProfile profile;
};
vector<Layer> layers;
string directory;
@@ -108,19 +108,19 @@ public:
const map<int, bufferlist> &chunks,
map<int, bufferlist> *decoded);
- int init(const map<string,string> &parameters, ostream *ss);
+ virtual int init(ErasureCodeProfile &profile, ostream *ss);
- virtual int parse(const map<string,string> &parameters, ostream *ss);
+ virtual int parse(ErasureCodeProfile &profile, ostream *ss);
- int parse_kml(map<string,string> &parameters, ostream *ss);
+ int parse_kml(ErasureCodeProfile &profile, ostream *ss);
- int parse_ruleset(const map<string,string> &parameters, ostream *ss);
+ int parse_ruleset(ErasureCodeProfile &profile, ostream *ss);
int parse_ruleset_step(string description_string,
json_spirit::mArray description,
ostream *ss);
- int layers_description(const map<string,string> &parameters,
+ int layers_description(const ErasureCodeProfile &profile,
json_spirit::mArray *description,
ostream *ss) const;
int layers_parse(string description_string,