]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: implement reliable has-children check (unlink dir)
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 14 Mar 2017 01:52:08 +0000 (21:52 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 20 Apr 2017 09:25:41 +0000 (11:25 +0200)
commit8c7cb8227c39b09060cdca4e11dec75cf7f2336c
tree2cc6fa6bb35abd3a9d0dbff1e68406ecf84b0439
parent18f14dd86400b50f46930a9ef56666d82035507e
rgw_file: implement reliable has-children check (unlink dir)

Bug report and discussion provided by
Gui Hecheng <guihecheng@cmss.chinamobile.com> in nfs-ganesha upstream
github.  Briefly, while a reliable check is potentially costly,
it is necessary.

Fixes: http://tracker.ceph.com/issues/19270
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit b05f1c6d61aa4501a971e87de6dcaf3e58c3d9b4)
src/rgw/rgw_file.cc
src/rgw/rgw_file.h