From e158ad96ecb5a944b379365e36060013a26d0bcc Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Thu, 16 Jan 2014 13:58:21 +0100 Subject: [PATCH] erasure-code: make decode_concat virtual So that a plugin can provide a more efficient implementation. Reviewed-By: Christophe Courtaut Signed-off-by: Loic Dachary --- src/erasure-code/ErasureCodeInterface.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/erasure-code/ErasureCodeInterface.h b/src/erasure-code/ErasureCodeInterface.h index f8e22d1eb531b..dd05ae9ace866 100644 --- a/src/erasure-code/ErasureCodeInterface.h +++ b/src/erasure-code/ErasureCodeInterface.h @@ -349,8 +349,8 @@ namespace ceph { * @param [out] decoded concatenante of the data chunks * @return **0** on success or a negative errno on error. */ - int decode_concat(const map &chunks, - bufferlist *decoded) { + virtual int decode_concat(const map &chunks, + bufferlist *decoded) { set want_to_read; for (unsigned int i = 0; i < get_data_chunk_count(); i++) want_to_read.insert(i); -- 2.39.5