Merge pull request #13703 from linuxbox2/wip-is-linked

rgw_file:  use fh_hook::is_linked() to check residence
verified by hand f23
This commit is contained in:
Matt Benjamin 2017-02-28 16:16:16 -05:00 committed by GitHub
commit 2bcd9d7dde

View File

@ -813,8 +813,8 @@ namespace rgw {
lsubdout(fs->get_context(), rgw, 17)
<< __func__ << " " << *this
<< dendl;
/* if !deleted, then object still in fh_cache */
if (! deleted()) {
/* remove if still in fh_cache */
if (fh_hook.is_linked()) {
fs->fh_cache.remove(fh.fh_hk.object, this, FHCache::FLAG_LOCK);
}
return true;