]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: clearing a whiteout should create the object 6118/head
authorJosh Durgin <jdurgin@redhat.com>
Wed, 30 Sep 2015 00:02:57 +0000 (17:02 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 30 Sep 2015 00:04:59 +0000 (17:04 -0700)
commita965378e3af1e36b1d741dfe7cfd339816366b49
tree447c651abd76112ea6e346a06b1154ce34605e03
parent8322a5c2a6b60dd2b39ee2942f79616d171b3073
ReplicatedPG: clearing a whiteout should create the object

This was uncovered by 75321943729f1d5dfacb68645e3c5483740d66f8. Since
rbd_create() does a stat, the obc is cached as a whiteout, and the
subsequent create(EXCL) would fall through to return false from
maybe_create_new_object(). This would then skip adding a touch() to
the transaction.

Fixes: #13281
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/osd/ReplicatedPG.cc