]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMap: drop local pool filter in calc_pg_upmaps
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 23 Feb 2019 00:33:40 +0000 (08:33 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sun, 5 May 2019 09:37:23 +0000 (17:37 +0800)
commitc653063e04c6ff586e582b9cfd998c5657279609
tree1ae7f9dda292d7e646dae567c675d123dc671600
parenta1dd0e7a617adff55fc2eb5e13b311530c6cd8e9
osd/OSDMap: drop local pool filter in calc_pg_upmaps

The local pre-loaded pool filter is completely redundant since
the below check:

if (!only_pools.empty() && !only_pools.count(i.first))

could reliably catch both cases - either optimization should be
restricted to specific pools feeded, or all existing pools.

Let's clean it up.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 3e6bad9821b5fb3e780d970666fbdfbf217d905e)
src/osd/OSDMap.cc