]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc/Objecter: fix handling for osd_command dne/down cases
authorSage Weil <sage@inktank.com>
Thu, 13 Jun 2013 01:13:12 +0000 (18:13 -0700)
committerSage Weil <sage@inktank.com>
Thu, 13 Jun 2013 01:13:12 +0000 (18:13 -0700)
commit8808ca57c652502d9cf803b0dc53673ca9dd62af
treec4f99b5e3f92f8e84c0b6ab2d41d70746ae68d5b
parent11d5c7a23b7731463f79278004fcd1e52cb7832e
osdc/Objecter: fix handling for osd_command dne/down cases

Generalize the map check machinery that the pool dne check uses to also
get the latest map for OSD down/dne checks.  This is better semantics, but
more important fixes the more immediate bug of returning the error code
to the caller from the osd_command -> _submit_command (that is ignored by
pretty much any caller) and then never triggering the callback.

Fixes: #5331
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
src/osdc/Objecter.cc
src/osdc/Objecter.h