]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: move to ErasureCode::to_{int,bool}
authorLoic Dachary <loic@dachary.org>
Tue, 3 Jun 2014 15:25:20 +0000 (17:25 +0200)
committerLoic Dachary <loic@dachary.org>
Wed, 6 Aug 2014 13:22:00 +0000 (15:22 +0200)
commit54394fa117bbb1c2094bb7c44dc1a0d8e7e034cb
tree24a61b4d1fbe72c432939e2898047b832dddfc9e
parentb4b7c51f4b766f1dd5ec84a23dff58749d62bac1
erasure-code: move to ErasureCode::to_{int,bool}

The parameter parser helpers to_int and to_bool are moved from
ErasureCode{Jerasure,Isa} to ErasureCode.

The prototype is modified to return a status instead of the value. An
error ostream is provided as the last argument because ErasureCode
cannot use dout() or derr().

http://tracker.ceph.com/issues/8496 Refs: #8496

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