]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc/Objecter: fix osd target for newly-homeless op 1687/head
authorSage Weil <sage@inktank.com>
Thu, 17 Apr 2014 17:48:26 +0000 (10:48 -0700)
committerSage Weil <sage@inktank.com>
Thu, 17 Apr 2014 17:48:26 +0000 (10:48 -0700)
commit93c0515fd99f44e24bd5608f78fcf116d14fdc16
tree2303c92c0acf958888474398ca79b21cc7264971
parentfe71a12d78c5306917b5e2cc037874ff35cb0651
osdc/Objecter: fix osd target for newly-homeless op

If we recalculate the mapping and find that there is no primary, we need
to set the 'osd' field to -1.  Otherwise, the caller will try to resend
to a dead session with bad results.

This was introduced in the refactor 860d72770c.

Fixes: #8130
Signed-off-by: Sage Weil <sage@inktank.com>
src/osdc/Objecter.cc