]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ErasureCode: get rid of extra copy when encoding 615/head
authorLoic Dachary <loic@dachary.org>
Sat, 21 Sep 2013 13:05:22 +0000 (15:05 +0200)
committerLoic Dachary <loic@dachary.org>
Wed, 25 Sep 2013 14:26:49 +0000 (16:26 +0200)
commit812234cb09d5c4a868204fdf79fc06a4e376611e
tree8b17039822de524f0066f5f7fcf7bf3062238f2a
parentb0fee96078bf5e09336a0b2386b26af2c3788a4e
ErasureCode: get rid of extra copy when encoding

The substr_of bufferlist method is used to reduce the copies to the
strict minimum. It is both able to split bufferptr when they are larger
than a chunk and to concatenate them when they are smaller.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/osd/ErasureCodePluginJerasure/ErasureCodeJerasure.cc
src/test/osd/TestErasureCodeJerasure.cc