]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: fix null deref on rollback_to whiteout check 688/head
authorSage Weil <sage@inktank.com>
Fri, 4 Oct 2013 04:27:36 +0000 (21:27 -0700)
committerSage Weil <sage@inktank.com>
Fri, 4 Oct 2013 04:27:36 +0000 (21:27 -0700)
commit03ba7408db5d693dc8616c8146bbbb9f0ab66291
treedd8110a27fc343515b436515fc3eda8b00d37357
parentfea1e0e56cbd3d82a173b50532ff51b8bcee9359
osd/ReplicatedPG: fix null deref on rollback_to whiteout check

Bring this whole if/else chain up one level so that we can capture both
ENOENT and whiteout in the same case.  (And don't dereference the
pointer when we know it is NULL.)

Fixes: #6474
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc