diff options
Diffstat (limited to 'src/osdc/Objecter.cc')
-rw-r--r-- | src/osdc/Objecter.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index 6d25a9c8b68..d2c574d982e 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -1329,16 +1329,16 @@ int Objecter::recalc_op_target(Op *op) bool is_write = op->flags & CEPH_OSD_FLAG_WRITE; bool need_check_tiering = false; - if (honor_cache_redirects && op->target_oid.name.empty()) { + if (op->target_oid.name.empty()) { op->target_oid = op->base_oid; need_check_tiering = true; } - if (honor_cache_redirects && op->target_oloc.empty()) { + if (op->target_oloc.empty()) { op->target_oloc = op->base_oloc; need_check_tiering = true; } - if (need_check_tiering) { + if (honor_cache_redirects && need_check_tiering) { const pg_pool_t *pi = osdmap->get_pg_pool(op->base_oloc.pool); if (pi) { if (is_read && pi->has_read_tier()) |