]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc/Objecter: move mapping into struct, helper
authorSage Weil <sage@inktank.com>
Thu, 10 Apr 2014 01:02:27 +0000 (18:02 -0700)
committerSage Weil <sage@inktank.com>
Thu, 10 Apr 2014 01:02:27 +0000 (18:02 -0700)
commit860d72770cdf092c027d50f4ee03bed76c975599
treee45e2e5ccd22162c252603c641614d7e69ee8273
parent71d97f998a5a55570854ba20ba3643c3a9c00090
osdc/Objecter: move mapping into struct, helper

Move the common bits of Op and LingerOp into op_target_t and separate the
actual mapping calculation into calc_target().  This hugely simplifies
recal_*op_target() by mostly just shuffling all of the same logic into
that helper.

There is one functional change in this patch: recalc_linger_op() now is
aware of the tiering logic that was previously only handled in
recalc_op_target().

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