summaryrefslogtreecommitdiffstats
path: root/src/erasure-code
diff options
context:
space:
mode:
authorRadoslaw Zarzynski <rzarzyns@redhat.com>2020-07-03 15:18:06 +0200
committerRadoslaw Zarzynski <rzarzyns@redhat.com>2020-07-03 15:41:54 +0200
commit87dbdbb92fd61398a007ec2782dcfef83bbacb68 (patch)
treec3a2d3e41b15626e01061bfefafa381279b0d919 /src/erasure-code
parentMerge pull request #35370 from tspmelo/wip-ng-modal (diff)
downloadceph-87dbdbb92fd61398a007ec2782dcfef83bbacb68.tar.xz
ceph-87dbdbb92fd61398a007ec2782dcfef83bbacb68.zip
ec: drop stubs of {encode,decode}_chunks() from ErasureCode.
`decode_chunks()` was needed only because of the ec unit testing. Move its implementation there. Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Diffstat (limited to 'src/erasure-code')
-rw-r--r--src/erasure-code/ErasureCode.cc13
-rw-r--r--src/erasure-code/ErasureCode.h7
2 files changed, 0 insertions, 20 deletions
diff --git a/src/erasure-code/ErasureCode.cc b/src/erasure-code/ErasureCode.cc
index 8086bf8db7a..0cebf9a9802 100644
--- a/src/erasure-code/ErasureCode.cc
+++ b/src/erasure-code/ErasureCode.cc
@@ -203,12 +203,6 @@ int ErasureCode::encode(const set<int> &want_to_encode,
return 0;
}
-int ErasureCode::encode_chunks(const set<int> &want_to_encode,
- map<int, bufferlist> *encoded)
-{
- ceph_abort_msg("ErasureCode::encode_chunks not implemented");
-}
-
int ErasureCode::_decode(const set<int> &want_to_read,
const map<int, bufferlist> &chunks,
map<int, bufferlist> *decoded)
@@ -254,13 +248,6 @@ int ErasureCode::decode(const set<int> &want_to_read,
return _decode(want_to_read, chunks, decoded);
}
-int ErasureCode::decode_chunks(const set<int> &want_to_read,
- const map<int, bufferlist> &chunks,
- map<int, bufferlist> *decoded)
-{
- ceph_abort_msg("ErasureCode::decode_chunks not implemented");
-}
-
int ErasureCode::parse(const ErasureCodeProfile &profile,
ostream *ss)
{
diff --git a/src/erasure-code/ErasureCode.h b/src/erasure-code/ErasureCode.h
index 7e17a845f1a..c246d5dc6b6 100644
--- a/src/erasure-code/ErasureCode.h
+++ b/src/erasure-code/ErasureCode.h
@@ -79,9 +79,6 @@ namespace ceph {
const bufferlist &in,
std::map<int, bufferlist> *encoded) override;
- int encode_chunks(const std::set<int> &want_to_encode,
- std::map<int, bufferlist> *encoded) override;
-
int decode(const std::set<int> &want_to_read,
const std::map<int, bufferlist> &chunks,
std::map<int, bufferlist> *decoded, int chunk_size) override;
@@ -90,10 +87,6 @@ namespace ceph {
const std::map<int, bufferlist> &chunks,
std::map<int, bufferlist> *decoded);
- int decode_chunks(const std::set<int> &want_to_read,
- const std::map<int, bufferlist> &chunks,
- std::map<int, bufferlist> *decoded) override;
-
const std::vector<int> &get_chunk_mapping() const override;
int to_mapping(const ErasureCodeProfile &profile,