]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: improve constness of CrushWrapper methods
authorLoic Dachary <loic-201408@dachary.org>
Thu, 16 Oct 2014 00:02:58 +0000 (17:02 -0700)
committerLoic Dachary <loic-201408@dachary.org>
Thu, 16 Oct 2014 00:02:58 +0000 (17:02 -0700)
commit236895eea65f8706baa5fdef96fb00ad5b82218c
treee8b525b2c953da3b7dfb6430ee7dae8ad8bca953
parent6e22c37380f6288062c73e661eebc73ab9971f89
crush: improve constness of CrushWrapper methods

A number of CrushWrapper get methods or predicates were not const
because they need to maintain transparently the rmaps. Make the rmaps
mutable and update the constness of the methods to match what the caller
would expect.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h