]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: get largest bucket id faster
authorKefu Chai <kchai@redhat.com>
Wed, 30 Aug 2017 07:30:58 +0000 (15:30 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 30 Aug 2017 07:31:56 +0000 (15:31 +0800)
commit9ec4e216cbf4bf065bd1da77ec6fbc5c96760f2d
tree3a335203be48d6c55fee9a8cba8d9c41c65a5afb
parent3cf248c04df642157cb6d0d51117a35467625283
crush: get largest bucket id faster

std::map<> is sorted, so we can always get the largest key by reading
it's last element.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crush/CrushWrapper.cc