Skip to content

Commit

Permalink
Objecter: add ignore overlay flag if got redirect reply
Browse files Browse the repository at this point in the history
Objecter's target calculation should ignore overlays if client got redirect reply.

Fixes: https://tracker.ceph.com/issues/23296

Signed-off-by: Ting Yi Lin <wooertim@gmail.com>
  • Loading branch information
t19903 committed Mar 15, 2018
1 parent 15c4a1a commit a9ada31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osdc/Objecter.cc
Expand Up @@ -3411,7 +3411,7 @@ 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;
op->target.flags |= (CEPH_OSD_FLAG_REDIRECTED | CEPH_OSD_FLAG_IGNORE_OVERLAY);
_op_submit(op, sul, NULL);
m->put();
return;
Expand Down

0 comments on commit a9ada31

Please sign in to comment.