]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: mds: optimize MDBalancer::try_rebalance()
authorYan, Zheng <zyan@redhat.com>
Tue, 3 Apr 2018 03:34:32 +0000 (11:34 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 10 Apr 2018 01:19:47 +0000 (09:19 +0800)
commitcd6f77c6a08cf0d7f0a995664e7a8981675b1b9c
tree0da55753c802fa2c3ec66e452bb3b56602f45a9d
parent15810b436051c220e983b9b6cc268f2bc14acc2d
mds: mds: optimize MDBalancer::try_rebalance()

1. change import_pop_map to multimap because subtrees may have the same
   popularity.
2. avoid calculating subtrees' popularity multiple times

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDBalancer.cc