]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc/Objecter: recalculate target_* on every _calc_target call
authorSage Weil <sage@redhat.com>
Fri, 10 Feb 2017 14:37:36 +0000 (09:37 -0500)
committerSage Weil <sage@redhat.com>
Tue, 14 Feb 2017 04:03:52 +0000 (23:03 -0500)
commit9adb68f5e206c167b97ec89935cbdaeb462173d8
tree90377bd292c12e45c760217f3c86c19fa6ca6f19
parente9dbe483fa54850f43015fc9f8458cade4c5ae44
osdc/Objecter: recalculate target_* on every _calc_target call

Any time we are asked to calculate the target we should apply the
pool tiering parameters.  The previous logic of only doing so when the
target hadn't been calculated didn't make a whole lot of sense, and broke
our update of *pi that is needed to get the correct pg_num for the target
pool.  This didn't really matter for old clusters that take the raw pg,
but for luminous and beyond we need the exact spg_t which requires a
correct pg_num.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osdc/Objecter.cc