So that a plugin can provide a more efficient implementation.
Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
* @param [out] decoded concatenante of the data chunks
* @return **0** on success or a negative errno on error.
*/
- int decode_concat(const map<int, bufferlist> &chunks,
- bufferlist *decoded) {
+ virtual int decode_concat(const map<int, bufferlist> &chunks,
+ bufferlist *decoded) {
set<int> want_to_read;
for (unsigned int i = 0; i < get_data_chunk_count(); i++)
want_to_read.insert(i);