]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ErasureCode: minimum_to_decode unit tests and optimization 618/head
authorLoic Dachary <loic@dachary.org>
Sun, 22 Sep 2013 08:58:23 +0000 (10:58 +0200)
committerLoic Dachary <loic@dachary.org>
Sun, 22 Sep 2013 09:02:39 +0000 (11:02 +0200)
commit9dfac9edfe4beedcd0c51e553c75411dd045685c
treec957cb39852f37a8fc66f283d19ba7545039af38
parent08a97ae45f4df58a6a8ea8a6400934d860cf5eb4
ErasureCode: minimum_to_decode unit tests and optimization

The minimum_to_decode function simply returns the available chunks if no
recovery is necessary.

Add unit tests covering all minimum_to_decode situations:

* trying to read nothing
* read a chunk if none are available
* reading a subset of the available chunks
* read a missing chunk if there is less than k chunks available.
* reading when a chunk must be recovered

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