]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: use fh_hook::is_linked() to check residence 14169/head
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 28 Feb 2017 20:49:06 +0000 (15:49 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 29 Mar 2017 20:19:44 +0000 (16:19 -0400)
commitfb85c68dfbfcfb299cac3a7e6723067f216483ef
treee8001f19b44761bbabe65cb99a9b41c6a03e380e
parentd2ca03b391340c6944ba453b106f3e1c45b75f1d
rgw_file:  use fh_hook::is_linked() to check residence

Previously we assumed that !deleted handles were resident--there
is an observed case where a !deleted handle is !linked.  Since
we currently use safe_link mode, an is_linked() check is
available, and exhaustive.

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