From c9df14b8fc29708e91e745231e67db7fca382de7 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 --- 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 ed3a6597c01d..089aaacf189e 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -3437,7 +3437,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.47.3