]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
erasure-code: make decode_concat virtual 1901/head
authorLoic Dachary <loic@dachary.org>
Thu, 16 Jan 2014 12:58:21 +0000 (13:58 +0100)
committerLoic Dachary <loic@dachary.org>
Sat, 31 May 2014 11:38:10 +0000 (13:38 +0200)
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>
src/erasure-code/ErasureCodeInterface.h

index f8e22d1eb531bd397db3a94eccdc2b551fae0608..dd05ae9ace866702385356e029e56910c790f665 100644 (file)
@@ -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<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);