]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: test for missing head before find_object_context
authorSamuel Just <sam.just@inktank.com>
Tue, 12 Nov 2013 23:15:26 +0000 (15:15 -0800)
committerSamuel Just <sam.just@inktank.com>
Fri, 22 Nov 2013 18:52:14 +0000 (10:52 -0800)
commit53951fd5459d6396b6ab59b52dc33df0ebcf4414
tree07f34a8773b2a913a12950e4c6273201a7865775
parent83ee6843de6432278dc2891526691006c51eb1fa
ReplicatedPG: test for missing head before find_object_context

find_object_context doesn't return EAGAIN for a missing head.
I chose not to change that behavior since it might hide bugs
in the future.  All other callers check for missing on head
before calling into find_object_context because we potentially
need head or snapdir to map a snapid onto a clone.

Backport: emperor
Fixes: 6758
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
(cherry picked from commit dd9d8b020286d5e3a69455023c3724a7b436d687)
src/common/hobject.h
src/osd/ReplicatedPG.cc