]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librgw: fix rgw_unlink and delete atomicity
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 15 Jan 2016 17:45:58 +0000 (12:45 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:08:05 +0000 (12:08 -0500)
commit2e109ec3d2413cdd769136845f83415a25bde611
tree2ba9bc1d25e13ba1e7d3951297e033e623a677be
parentad3a22dacbf8189dcb885b1e9f3a50b59c447486
librgw: fix rgw_unlink and delete atomicity

Move internal unlink logic into new RGWLibFS::unlink method, fix
logic for files and directories.

Use RGWFileHandle::mtx and  RGWFileHandle::FLAG_DELETED to ensure
atomicity of handle creates and deletes.

Remove handles for unlinked objects from cache.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc
src/rgw/rgw_file.h