]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: refactor the example to use chunk size helpers
authorLoic Dachary <loic@dachary.org>
Wed, 18 Dec 2013 09:00:30 +0000 (10:00 +0100)
committerLoic Dachary <loic@dachary.org>
Fri, 10 Jan 2014 18:24:55 +0000 (19:24 +0100)
commiteb2374ea21594ee41f3903dbacab16ca5b14b386
tree876cd8b3ecebd1ae8e571de68f54bb8dfc38fe3b
parent1f3c1bdd926dafef3ade527bacef77e358c49f96
erasure-code: refactor the example to use chunk size helpers

The get_chunk_size and get_chunk_count methods are implemented using the
code found in the encode() method. The encode method is modified to use
the chunk size helpers.

The unit tests are modified to use the helpers.

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