]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: avoid stranding invalid-name bucket handles in fhcache 13848/head
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 22 Feb 2017 15:24:29 +0000 (10:24 -0500)
committerNathan Cutler <ncutler@suse.com>
Tue, 7 Mar 2017 21:30:31 +0000 (22:30 +0100)
commit97fed013f66a89c404bac5145080e5d556ff5c42
treea70024b9ddbb4bb514416ab1d4818f091b55cf40
parent420a9a0796e327676cb704bc18b2020f9941d7b6
rgw_file: avoid stranding invalid-name bucket handles in fhcache

To avoid a string copy in the common mkdir path, handles for
proposed buckets currently are staged in the handle table, before
being rejected.  They need to be destaged, not just marked deleted
(because deleted objects are now assumed not to be linked, as of
beaeff059375b44188160dbde8a81dd4f4f8c6eb).

This triggered an unhandled Boost assert when deleting staged
handles, as current safe_link mode requires first removing from
the FHCache.

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