From c2598697c4fba3b4601b58a8f33c0a12c0174d78 Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Thu, 11 Oct 2018 19:47:38 +0200 Subject: [PATCH] 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 --- src/osdc/Objecter.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index 3ad0bc516e9f1..ced3435fa932f 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; -- 2.39.5