]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ErasureCode: improve API implementation example 603/head
authorLoic Dachary <loic@dachary.org>
Tue, 17 Sep 2013 08:50:58 +0000 (10:50 +0200)
committerLoic Dachary <loic@dachary.org>
Tue, 17 Sep 2013 08:58:26 +0000 (10:58 +0200)
commit89e8b8be2fbfea065defba39ee2d2a620b21a11f
tree77ee3e7f51644d4d076f0cb5c615818220d02d25
parent3966e6ea0622b2880ff267f0b9529e7c9b2bafd1
ErasureCode: improve API implementation example

* minimum_to_decode and minimum_to_decode_with_cost are replaced with
  meaningfull examples instead of placeholders

* encode and decode are commented and hard coded constants are replaced
  by defines for readability

* run against valgrind

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/osd/ErasureCodeExample.h
src/test/osd/TestErasureCodeExample.cc