]> 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>
Thu, 28 Mar 2019 01:48:05 +0000 (09:48 +0800)
commitab2dbc20893c99e26ba365823ed68b96f03f0f37
tree842ad0ea164fb46e0f58adbffca924c21a443d70
parent5c173a0e65dc9eaca6e95b600270eaf2394b48eb
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