diff options
author | Greg Farnum <greg@inktank.com> | 2013-09-26 13:39:17 -0700 |
---|---|---|
committer | Greg Farnum <greg@inktank.com> | 2013-09-26 13:39:17 -0700 |
commit | 396fce7cc4643ed1cf7ba5b044ee965e5c47088c (patch) | |
tree | 14330f7b5daa178ee60c13fbb02cdef1f9fc912a | |
parent | 76b71b062494e3e4e25a78306e2f72f95d015d61 (diff) | |
download | ceph-396fce7cc4643ed1cf7ba5b044ee965e5c47088c.tar.gz |
fixup honor_cache_redirects
-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()) |