From: Iain Buclaw Date: Thu, 11 Oct 2018 17:47:38 +0000 (+0200) Subject: Objecter: add ignore cache flag if got redirect reply X-Git-Tag: v13.2.3~22^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F25075%2Fhead;p=ceph.git Objecter: add ignore cache flag if got redirect reply Similar to fix for https://tracker.ceph.com/issues/23296 Fixes: https://tracker.ceph.com/issues/36406 Signed-off-by: Iain Buclaw (cherry picked from commit c9df14b8fc29708e91e745231e67db7fca382de7) Signed-off-by: Jonathan Brielmaier --- diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index 3ad0bc516e9f..ced3435fa932 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -3441,7 +3441,9 @@ void Objecter::handle_osd_op_reply(MOSDOpReply *m) op->tid = 0; m->get_redirect().combine_with_locator(op->target.target_oloc, op->target.target_oid.name); - op->target.flags |= (CEPH_OSD_FLAG_REDIRECTED | CEPH_OSD_FLAG_IGNORE_OVERLAY); + op->target.flags |= (CEPH_OSD_FLAG_REDIRECTED | + CEPH_OSD_FLAG_IGNORE_CACHE | + CEPH_OSD_FLAG_IGNORE_OVERLAY); _op_submit(op, sul, NULL); m->put(); return;