]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: do not assume head obc object exists when getting snapdir
authorSage Weil <sage@inktank.com>
Wed, 29 May 2013 16:49:11 +0000 (09:49 -0700)
committerSage Weil <sage@inktank.com>
Wed, 29 May 2013 16:49:11 +0000 (09:49 -0700)
commit29e4e7e316fe3f3028e6930bb5987cfe3a5e59ab
tree6ef4ce2fe44b7f7c52e87c8e524675b4e4062d95
parent1bb4e7435c3797b08aa185265425b2cb6efb66a2
osd: do not assume head obc object exists when getting snapdir

For a list-snaps operation on the snapdir, do not assume that the obc for the
head means the object exists.  This fixes a race between a head deletion and
a list-snaps that wrongly returns ENOENT, triggered by the DiffItersateStress
test when thrashing OSDs.

Fixes: #5183
Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc