]> git-server-git.apps.pok.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>
Sat, 23 Feb 2019 07:50:31 +0000 (15:50 +0800)
commit3e6bad9821b5fb3e780d970666fbdfbf217d905e
tree5adf47b091dc2067c71fbb4ba941682ef2e2b7f3
parentae786b93c83dac23beb83b8c682c109448346222
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>
src/osd/OSDMap.cc