Skip to content

Commit

Permalink
Merge pull request #18427 from dillaman/wip-21845
Browse files Browse the repository at this point in the history
osdc/Objecter: delay initialization of hobject_t in _send_op

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
  • Loading branch information
liewegas committed Oct 21, 2017
2 parents 40f0bbc + eca4faf commit 953d785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osdc/Objecter.cc
Expand Up @@ -3182,9 +3182,9 @@ void Objecter::_send_op(Op *op, MOSDOp *m)
// op->session->lock is locked

// backoff?
hobject_t hoid = op->target.get_hobj();
auto p = op->session->backoffs.find(op->target.actual_pgid);
if (p != op->session->backoffs.end()) {
hobject_t hoid = op->target.get_hobj();
auto q = p->second.lower_bound(hoid);
if (q != p->second.begin()) {
--q;
Expand Down

0 comments on commit 953d785

Please sign in to comment.