]> 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)
committerSage Weil <sage@redhat.com>
Fri, 13 Feb 2015 16:32:00 +0000 (08:32 -0800)
commit247afa4efe7d11b5ef06e094680b50ea30d7d5e3
tree6a7fc4f781664bb71698d5ff6efd5cfd7b4a7d87
parentc59279a25b6c53e0ab3988b0f00ae3cce94f33d7
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>
(cherry picked from commit 236895eea65f8706baa5fdef96fb00ad5b82218c)
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h