]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: lrc size test depends on layer semantic
authorLoic Dachary <ldachary@redhat.com>
Mon, 25 May 2015 13:44:53 +0000 (15:44 +0200)
committerLoic Dachary <ldachary@redhat.com>
Mon, 25 May 2015 14:59:02 +0000 (16:59 +0200)
commit6ca60061bb034adf5a32f790eb04f4f4e69ae286
tree867a22d564fe2524227151ee5e88b123af9493af
parent21036cf086c8a044756b95bc840dd89a9f7a9142
erasure-code: lrc size test depends on layer semantic

When the lrc layers are defined, the semantic of the D,c and _
characters are defined, the rest is undefined. The test that verifies
the guard against layers of different size uses the A character which
is undefined. Depending on the implementation, the size test could fail
because the A character is undefined and a guard to forbid undefined
characters is added. Replace A with D to make sure the undefined
character A will not interfere with the test.

This may seem nitpicking but it actually caused problems after a code
refactor that will appear in a few commits from here.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/test/erasure-code/TestErasureCodeLrc.cc