]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: delegate chunk remapping to the plugin
authorLoic Dachary <loic-201408@dachary.org>
Sun, 24 Aug 2014 18:52:24 +0000 (20:52 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Fri, 29 Aug 2014 17:38:57 +0000 (19:38 +0200)
commitc2ca011708dd111f196b3a83ce76a768d80e65ef
tree59d64999173d985b89eca6b289fb758759793892
parentb517ca4888bfe2f453c658b7a7e0a9d35349e728
erasure-code: delegate chunk remapping to the plugin

Remapping the chunks after they have been encoded by the plugin is fine
if remapping is transparent to the plugin. However, the goal is to
delegate the remapping of the chunks to the plugin, for LRC in
particular. The chunks are therefore reordered according to the
directions found in the mapping array before they are passed to
decode_chunks.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/erasure-code/ErasureCode.cc