]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: ErasureCode default value is a string
authorLoic Dachary <ldachary@redhat.com>
Sun, 17 May 2015 15:53:55 +0000 (17:53 +0200)
committerLoic Dachary <ldachary@redhat.com>
Sat, 30 May 2015 22:01:34 +0000 (00:01 +0200)
commit4b3ba2abc4eb94bf09422090d6b6c357fced1fb9
treea81c3064883c50f1bec1952e7cb2d71d489f5a91
parent830054b419be7f2a8097ae2856e9a09add4b58ee
erasure-code: ErasureCode default value is a string

The to_int, to_bool prototypes are modified and the default values are
changed to string instead of int. If a default value is set, the profile
is modified to contain the default value.

The to_string helper is added so it can be used to set the default value
of a string, in a way that is consistent with to_int and to_bool.

http://tracker.ceph.com/issues/9589 Fixes: #9589

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