]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: parse function for the mapping parameter
authorLoic Dachary <loic@dachary.org>
Tue, 3 Jun 2014 20:20:29 +0000 (22:20 +0200)
committerLoic Dachary <loic@dachary.org>
Thu, 14 Aug 2014 23:07:22 +0000 (01:07 +0200)
commit164cfe8591108b9d9b7491a83c444da0acf3b890
treefe29e02d55259b5c103a3b3e885270a129b20e1d
parent298da45c5c4a2be319c49876c9f1d0addbb54b04
erasure-code: parse function for the mapping parameter

Each D letter is a data chunk. For instance:

    _DDD_DDD

is going to parse into:

   [ 1, 2, 3, 5, 6, 7 ]

the 0 and 4 positions are not used by chunks and do not show in the
mapping. Implement ErasureCode::parse to support a reasonable default
for the mapping parameter.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/erasure-code/ErasureCode.cc
src/erasure-code/ErasureCode.h