]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: expect all plugins to implement get_profile
authorLoic Dachary <ldachary@redhat.com>
Mon, 1 Jun 2015 17:46:50 +0000 (19:46 +0200)
committerLoic Dachary <ldachary@redhat.com>
Mon, 1 Jun 2015 17:52:48 +0000 (19:52 +0200)
commit0f2c55679610cc9158d83e1dc82edfe0de0302d1
treea0575cd4d0c8b9fa4f3cefac4ffeae033d3c8f27
parenta1de1fc20e3f00c1e4e1d3eab8fd157a50174617
erasure-code: expect all plugins to implement get_profile

Add the get_profile method to the interface and make it a pure virtual.
Each plugin is expected to return the profile currently in use. Although
the profile is also stored in the OSDMap, it provides a convenient
introspection method to validate that the profile being set is indeed
the profile being used.

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