]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ErasureCode: improve API implementation example
authorLoic Dachary <loic@dachary.org>
Tue, 17 Sep 2013 08:50:58 +0000 (10:50 +0200)
committerLoic Dachary <loic@dachary.org>
Thu, 19 Sep 2013 07:47:53 +0000 (09:47 +0200)
commitdef05f06edb6d48d65126e7261e91808a6d9b054
treeddd9f460dce45ee734e88b8092778620822f6809
parentd8b55837fde104049448314462aec6c8dd3c4832
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