]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: OSDMonitor::get_erasure_code is a const
authorLoic Dachary <loic@dachary.org>
Wed, 11 Jun 2014 20:47:49 +0000 (22:47 +0200)
committerLoic Dachary <loic@dachary.org>
Fri, 13 Jun 2014 10:56:14 +0000 (12:56 +0200)
commit3c638111a4943758b6089c63a42aabbf281ac257
tree0f7319e0065806ad31d407ea525991225a4236b8
parentff2eb234e63cd281b40405cb3397da5babda943f
erasure-code: OSDMonitor::get_erasure_code is a const

If it is not, the non const version of OSDMap::get_erasure_code_profile
is called and a profile is created as a side effect, which is not
intended.

http://tracker.ceph.com/issues/8307 refs: #8307

Signed-off-by: Loic Dachary <loic@dachary.org>
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h